File Coverage

blib/lib/Net/DRI/Protocol/EPP/Extensions/ASIA.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             ## Domain Registry Interface, .ASIA EPP extensions
2             ##
3             ## Copyright (c) 2007-2009 Tonnerre Lombard . All rights reserved.
4             ## (c) 2010,2013 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::Protocol::EPP::Extensions::ASIA;
17              
18 2     2   1212 use strict;
  2         3  
  2         64  
19 2     2   8 use warnings;
  2         3  
  2         43  
20              
21 2     2   486 use Net::DRI::Data::Contact::ASIA;
  2         4  
  2         28  
22 2     2   68 use base qw/Net::DRI::Protocol::EPP/;
  2         5  
  2         813  
23              
24             =pod
25              
26             =head1 NAME
27              
28             Net::DRI::Protocol::EPP::Extensions::ASIA - .ASIA EPP extensions for Net::DRI
29              
30             =head1 DESCRIPTION
31              
32             Please see the README file for details.
33              
34             =head1 SUPPORT
35              
36             For now, support questions should be sent to:
37              
38             Enetdri@dotandco.comE
39              
40             Please also see the SUPPORT file in the distribution.
41              
42             =head1 SEE ALSO
43              
44             Ehttp://www.dotandco.com/services/software/Net-DRI/E and
45             Ehttp://oss.bsdprojects.net/projects/netdri/E
46              
47             =head1 AUTHOR
48              
49             Tonnerre Lombard Etonnerre.lombard@sygroup.chE
50              
51             =head1 COPYRIGHT
52              
53             Copyright (c) 2007-2009 Tonnerre Lombard .
54             (c) 2010,2013 Patrick Mevzek
55             All rights reserved.
56              
57             This program is free software; you can redistribute it and/or modify
58             it under the terms of the GNU General Public License as published by
59             the Free Software Foundation; either version 2 of the License, or
60             (at your option) any later version.
61              
62             See the LICENSE file that comes with this distribution for more details.
63              
64             =cut
65              
66             ####################################################################################################
67              
68             sub setup
69             {
70             my ($self,$rp)=@_;
71             $self->ns({ asia => ['urn:afilias:params:xml:ns:asia-1.0','asia-1.0.xsd'],
72             ipr => ['urn:afilias:params:xml:ns:ipr-1.1','ipr-1.1.xsd'],
73             oxrs => ['urn:afilias:params:xml:ns:oxrs-1.1','oxrs-1.1.xsd'],
74             });
75             $self->factories('contact',sub { return Net::DRI::Data::Contact::ASIA->new(@_); });
76             $self->capabilities('domain_update','maintainer_url',['set']);
77             $self->capabilities('domain_update','contact',['add','set','del']);
78             $self->capabilities('domain_update','ipr',['set','del']);
79             return;
80             }
81              
82             sub default_extensions { return qw/GracePeriod Afilias::IPR ASIA::CED ASIA::Domain SecDNS/; }
83              
84             ####################################################################################################
85             1;