File Coverage

blib/lib/Net/DRI/DRD/IENUMAT.pm
Criterion Covered Total %
statement 15 30 50.0
branch 0 2 0.0
condition n/a
subroutine 5 13 38.4
pod 4 8 50.0
total 24 53 45.2


line stmt bran cond sub pod time code
1             ## Domain Registry Interface, Infrastructure ENUM.AT policy on reserved names
2             ## Contributed by Michael Braunoeder from ENUM.AT
3             ##
4             ## Copyright (c) 2006,2008-2011 Patrick Mevzek . All rights reserved.
5             ##
6             ## This file is part of Net::DRI
7             ##
8             ## Net::DRI is free software; you can redistribute it and/or modify
9             ## it under the terms of the GNU General Public License as published by
10             ## the Free Software Foundation; either version 2 of the License, or
11             ## (at your option) any later version.
12             ##
13             ## See the LICENSE file that comes with this distribution for more details.
14             ####################################################################################################
15              
16             package Net::DRI::DRD::IENUMAT;
17              
18 1     1   1222 use strict;
  1         2  
  1         58  
19 1     1   8 use warnings;
  1         2  
  1         37  
20              
21 1     1   6 use base qw/Net::DRI::DRD/;
  1         2  
  1         97  
22              
23 1     1   7 use Net::DRI::Util;
  1         2  
  1         24  
24 1     1   11 use DateTime::Duration;
  1         2  
  1         315  
25              
26             ## The domain renew command are not implemented at the ienum43 EPP server, domains are renewed automatically
27             __PACKAGE__->make_exception_for_unavailable_operations(qw/domain_renew/);
28              
29             =pod
30              
31             =head1 NAME
32              
33             Net::DRI::DRD::IENUMAT - Infrastructure ENUM.AT policies for Net::DRI
34              
35             =head1 DESCRIPTION
36              
37             Please see the README file for details.
38              
39             =head1 SUPPORT
40              
41             For now, support questions should be sent to:
42              
43             Enetdri@dotandco.comE
44              
45             Please also see the SUPPORT file in the distribution.
46              
47             =head1 SEE ALSO
48              
49             Ehttp://www.dotandco.com/services/software/Net-DRI/E
50              
51             =head1 AUTHOR
52              
53             Patrick Mevzek, Enetdri@dotandco.comE
54              
55             =head1 COPYRIGHT
56              
57             Copyright (c) 2006,2008-2011 Patrick Mevzek .
58             All rights reserved.
59              
60             This program is free software; you can redistribute it and/or modify
61             it under the terms of the GNU General Public License as published by
62             the Free Software Foundation; either version 2 of the License, or
63             (at your option) any later version.
64              
65             See the LICENSE file that comes with this distribution for more details.
66              
67             =cut
68              
69             ####################################################################################################
70              
71             sub new
72             {
73 0     0 0   my $class=shift;
74 0           my $self=$class->SUPER::new(@_);
75 0           $self->{info}->{host_as_attr}=0;
76 0           return $self;
77             }
78              
79 0     0 1   sub periods { return map { DateTime::Duration->new(years => $_) } (1); }
  0            
80 0     0 1   sub name { return 'IENUMAT'; }
81 0     0 1   sub tlds { return ('i.3.4.e164.arpa'); }
82 0     0 1   sub object_types { return ('domain'); }
83 0     0 0   sub profile_types { return qw/epp/; }
84              
85             sub transport_protocol_default
86             {
87 0     0 0   my ($self,$type)=@_;
88              
89 0 0         return ('Net::DRI::Transport::Socket',{},'Net::DRI::Protocol::EPP::Extensions::IENUMAT',{}) if $type eq 'epp';
90 0           return;
91             }
92              
93             ####################################################################################################
94              
95             sub verify_name_domain
96             {
97 0     0 0   my ($self,$ndr,$domain,$op)=@_;
98 0           return $self->_verify_name_rules($domain,$op,{check_name_no_dots => 1, ## is this correct?
99             my_tld_not_strict => 1, ## is this correct?
100             no_country_code => 1,
101             });
102             }
103              
104             ####################################################################################################
105             1;