1## Domain Registry Interface, .IT policies
2##
3## Copyright (c) 2009,2010 Patrick Mevzek <netdri@dotandco.com>. All rights reserved.
4##
5## This file is part of Net::DRI
6##
7## Net::DRI is free software; you can redistribute it and/or modify
8## it under the terms of the GNU General Public License as published by
9## the Free Software Foundation; either version 2 of the License, or
10## (at your option) any later version.
11##
12## See the LICENSE file that comes with this distribution for more details.
13#
14#
15#
16####################################################################################################
17
18package Net::DRI::DRD::IT;
19
20use strict;
21use warnings;
22
23use base qw/Net::DRI::DRD/;
24
25use Net::DRI::Exception;
26use DateTime::Duration;
27
28our $VERSION=do { my @r=(q$Revision: 1.2 $=~/\d+/g); sprintf("%d".".%02d" x $#r, @r); };
29
30__PACKAGE__->make_exception_for_unavailable_operations(qw/host_check host_info host_update host_delete host_create contact_transfer contact_transfer_start contact_transfer_stop contact_transfer_query contact_transfer_accept contact_transfer_refuse domain_renew/);
31
32=pod
33
34=head1 NAME
35
36Net::DRI::DRD::IT - .IT policies for Net::DRI
37
38=head1 DESCRIPTION
39
40Please see the README file for details.
41
42This is only a stub for now, no .IT extensions are implemented currently.
43
44=head1 SUPPORT
45
46For now, support questions should be sent to:
47
48E<lt>netdri@dotandco.comE<gt>
49
50Please also see the SUPPORT file in the distribution.
51
52=head1 SEE ALSO
53
54E<lt>http://www.dotandco.com/services/software/Net-DRI/E<gt>
55
56=head1 AUTHOR
57
58Patrick Mevzek, E<lt>netdri@dotandco.comE<gt>
59
60=head1 COPYRIGHT
61
62Copyright (c) 2009,2010 Patrick Mevzek <netdri@dotandco.com>.
63All rights reserved.
64
65This program is free software; you can redistribute it and/or modify
66it under the terms of the GNU General Public License as published by
67the Free Software Foundation; either version 2 of the License, or
68(at your option) any later version.
69
70See the LICENSE file that comes with this distribution for more details.
71
72=cut
73
74####################################################################################################
75
76sub new
77{
78 my $class=shift;
79 my $self=$class->SUPER::new(@_);
80 $self->{info}->{host_as_attr}=1;
81 bless($self,$class);
82 return $self;
83}
84
85sub periods  { return map { DateTime::Duration->new(years => $_) } (1..10); }
86sub name     { return 'IIT-CNR'; }
87sub tlds     { return ('it'); }
88sub object_types { return ('domain','contact','ns'); }
89sub profile_types { return qw/epp/; }
90
91sub transport_protocol_default
92{
93 my ($self,$type)=@_;
94
95 return ('Net::DRI::Transport::HTTP',{protocol_connection=>'Net::DRI::Protocol::EPP::Extensions::HTTP'},'Net::DRI::Protocol::EPP::Extensions::IT',{}) if $type eq 'epp'; ## EPP is over HTTPS here
96 return;
97}
98
99####################################################################################################
1001;
101