DRI/Protocol/EPP/Extensions/TCI.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« DRI/Protocol/EPP/Extensions/SWITCH.pm ↑ Summary DRI/Protocol/EPP/Extensions/Telnic.pm »
1 ## Domain Registry Interface, .RU/.SU/.XN--P1AI EPP Extension for Net::DRI
2 ##
3 ## Copyright (c) 2010-2011 Dmitry Belyavsky <beldmit@gmail.com>
4 ## 2011-2013,2018 Patrick Mevzek <netdri@dotandco.com>. 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::TCI;
17  
18 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 1 ▶use base qw(Net::DRI::Protocol::EPP);
Subroutine BEGIN: called CC=1 SCAR=0.0
22 use Net::DRI::Protocol::EPP::Extensions::TCI::Message;
23 use Net::DRI::Data::Contact::TCI;
24  
25 ####################################################################################################
26  
27 sub setup
28 {
29 my ($self,$rp)=@_;
30 $self->ns({
31 epp => 'http://www.ripn.net/epp/ripn-epp-1.0',
32 domain => 'http://www.ripn.net/epp/ripn-domain-1.0',
33 contact => 'http://www.ripn.net/epp/ripn-contact-1.0',
34 host => 'http://www.ripn.net/epp/ripn-host-1.0',
35 registrar => 'http://www.ripn.net/epp/ripn-registrar-1.0',
36 secDNS => 'urn:ietf:params:xml:ns:secDNS-1.1',
37 });
38 $self->factories('message',sub { my $m= Net::DRI::Protocol::EPP::Extensions::TCI::Message->new(@_); $m->ns($self->ns()); $m->version($self->version() ); return $m; });
39 $self->factories('contact',sub { return Net::DRI::Data::Contact::TCI->new(); });
40  
41 foreach my $o (qw/contact/) { $self->capabilities('contact_update',$o,['set']); }
42 foreach my $o (qw/contact description/) { $self->capabilities('domain_update',$o,['set']); }
43 foreach my $o (qw/ns/) { $self->capabilities('domain_update',$o,['add', 'del']); }
44 return;
45 }
46  
47 sub core_modules
48 {
49 my ($self,$rp)=@_;
50 my @c=map { 'Net::DRI::Protocol::EPP::Extensions::TCI::'.$_ } qw/Contact/;
51 push @c, map { 'Net::DRI::Protocol::EPP::Core::'.$_ } qw/Session RegistryMessage Domain Host/;
52 return @c;
53 }
54  
55 sub default_extensions { return qw(TCI::Contact TCI::Domain TCI::Registrar SecDNS); }
56  
57 ####################################################################################################
58 1;
59  
60 =pod
61  
62 =head1 NAME
63  
64 Net::DRI::Protocol::EPP::Extensions::TCI - TCI EPP Extensions for Net::DRI
65  
66 =head1 DESCRIPTION
67  
68 Please see the README file for details.
69  
70 =head1 SUPPORT
71  
72 For now, support questions should be sent to:
73  
74 E<lt>netdri@dotandco.comE<gt>
75  
76 Please also see the SUPPORT file in the distribution.
77  
78 =head1 SEE ALSO
79  
80 E<lt>http://www.dotandco.com/services/software/Net-DRI/E<gt>
81  
82 =head1 AUTHOR
83  
84 Dmitry Belyavsky, E<lt>beldmit@gmail.comE<gt>
85 Patrick Mevzek, E<lt>netdri@dotandco.comE<gt>
86  
87 =head1 COPYRIGHT
88  
89 Copyright (c) 2010-2011 Dmitry Belyavsky <beldmit@gmail.com>
90 Copyright (c) 2011-2013,2018 Patrick Mevzek <netdri@dotandco.com>.
91 All rights reserved.
92  
93 This program is free software; you can redistribute it and/or modify
94 it under the terms of the GNU General Public License as published by
95 the Free Software Foundation; either version 2 of the License, or
96 (at your option) any later version.
97  
98 See the LICENSE file that comes with this distribution for more details.
99  
100 =cut
« DRI/Protocol/EPP/Extensions/SWITCH.pm ↑ Summary DRI/Protocol/EPP/Extensions/Telnic.pm »