DRI/DRD/ISPAPI.pm

filter: Statementstmt 37.1% 13 / 35 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 30.7% 4 / 13 Podpod 44.4% 4 / 9 totaltotal 33.3% 21 / 63 CC 4 SCAR 14.2
CC
4
Cov
32%
account_list_domains
12.0
transport_protocol_default
6.0
new
2.0
CRAP 4.1
« DRI/DRD/GDI.pm ↑ Summary DRI/DRD/auDA.pm »
1 ## Domain Registry Interface, ISPAPI (aka HEXONET) Registry Driver
2 ##
3 ## Copyright (c) 2010-2011 HEXONET GmbH, http://www.hexonet.net, Jens Wagner <info@hexonet.net>. All rights reserved.
4 ## (c) 2011 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::DRD::ISPAPI;
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::DRD/;
Subroutine BEGIN: called CC=1 SCAR=0.0
22  
23 1 ▶use DateTime::Duration;
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 =pod
26  
27 =head1 NAME
28  
29 Net::DRI::DRD::ISPAPI - ISPAPI Registry driver for Net::DRI
30  
31 =head1 DESCRIPTION
32  
33 The ISPAPI Registry driver for Net::DRI enables you to connect HEXONET's EPP server and gives you
34 the possibility to manage a wide range of gTLDs and ccTLDs.
35  
36 In addition to the EPP 1.0 compliant commands there is a Key-Value mapping for additional domain related
37 parameters which are required by several registries. The driver also supports all other HEXONET commands like
38 queries for domain and contact lists. It is also possible to access additional HEXONET products
39 like virtual servers and ssl certificates.
40  
41 =head1 CURRENT LIMITATIONS
42  
43 The list of supported TLDs is currently static. If a new TLD is available the list has to be completed.
44  
45 =head1 SUPPORT
46  
47 For now, support questions should be sent to:
48  
49 E<lt>support@hexonet.netE<gt>
50  
51 Please also see the SUPPORT file in the distribution.
52  
53 =head1 SEE ALSO
54  
55 E<lt>http://www.hexonet.net/E<gt>
56  
57 =head1 AUTHOR
58  
59 Alexander Biehl, E<lt>abiehl@hexonet.netE<gt>
60 Jens Wagner, E<lt>jwagner@hexonet.netE<gt>
61  
62 =head1 COPYRIGHT
63  
64 Copyright (c) 2010-2011 HEXONET GmbH, E<lt>http://www.hexonet.netE<gt>,
65 Alexander Biehl <abiehl@hexonet.net>,
66 Jens Wagner <jwagner@hexonet.net>,
67 and Patrick Mevzek <netdri@dotandco.com>.
68 All rights reserved.
69  
70 This program is free software; you can redistribute it and/or modify
71 it under the terms of the GNU General Public License as published by
72 the Free Software Foundation; either version 2 of the License, or
73 (at your option) any later version.
74  
75 See the LICENSE file that comes with this distribution for more details.
76  
77 =cut
78  
79 ####################################################################################################
80  
81 sub new
82 {
83 0 ▶ my $class=shift;
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
84 0 my $self=$class->SUPER::new(@_);
85 0 $self->{info}->{host_as_attr}=0;
86 0 return $self;
87 }
88  
89 0 ▶sub periods { return (map { DateTime::Duration->new(years => $_) } (1..10)), (map { DateTime::Duration->new(months => $_) } (1..12)); }
Subroutine periods: not called CC=1 SCAR=6.9
Pod documented
90 0 ▶sub name { return 'ISPAPI'; }
Subroutine name: not called CC=1 SCAR=6.9
Pod documented
91 0 ▶sub tlds { return qw/com net org aero asia biz info jobs mobi name pro tel travel at be ca ch cz de dk es eu fr hk im in it jp lt lu mx nl nu pl pt re ru se sg tk me.uk co.uk org.uk us/; }
Subroutine tlds: not called CC=1 SCAR=6.9
Pod documented
92 0 ▶sub object_types { return ('domain','contact','ns'); }
Subroutine object_types: not called CC=1 SCAR=6.9
Pod documented
93 0 ▶sub profile_types { return qw/epp/; }
Subroutine profile_types: not called CC=1 SCAR=6.9
Pod undocumented
94  
95 sub transport_protocol_default
96 {
97 0 ▶ my ($self,$type)=@_;
Subroutine transport_protocol_default: not called CC=2 SCAR=17.9
Pod undocumented
98  
99 0 ▶ return ('Net::DRI::Transport::Socket',{remote_host=>'epp.ispapi.net',remote_port=>700},'Net::DRI::Protocol::EPP::Extensions::ISPAPI',{}) if $type eq 'epp';
Branch: 1 branch
BranchTrueFalseTotal
if $type eq "epp" 0 0 0
100 0 return;
101 }
102  
103 ####################################################################################################
104  
105 sub domain_operation_needs_is_mine
106 {
107 0 ▶ my ($self,$ndr,$domain,$op)=@_;
Subroutine domain_operation_needs_is_mine: not called CC=1 SCAR=6.9
Pod undocumented
108 0 return;
109 }
110  
111 sub account_list_domains
112 {
113 0 ▶ my ($self,$ndr,$hash)=@_;
Subroutine account_list_domains: not called CC=3 SCAR=24.8
Pod undocumented
114 0 my $rc;
115 0 ▶ $rc=$ndr->try_restore_from_cache('account','domains','list') if !$hash;
Branch: 1 branch
BranchTrueFalseTotal
unless $hash 0 0 0
116 0 ▶ if (! defined $rc) { $rc=$ndr->process('account','list_domains', [$hash]); }
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $rc) 0 0 0
117 0 return $rc;
118 }
119  
120 ####################################################################################################
121 1 1;
« DRI/DRD/GDI.pm ↑ Summary DRI/DRD/auDA.pm »