DRI/DRD/SIDN.pm

filter: Statementstmt 72.4% 21 / 29 Branchbran 50.0% 2 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 63.6% 7 / 11 Podpod 50.0% 4 / 8 totaltotal 65.3% 34 / 52 CC 3 SCAR 6.3
CC
3
Cov
70%
transport_protocol_default
3.5
periods
2.0
object_types
2.0
CRAP 1.9
« DRI/DRD/ZACR.pm ↑ Summary DRI/DRD/Nominet.pm »
1 ## Domain Registry Interface, SIDN (.NL) Registry Driver
2 ##
3 ## Copyright (c) 2009-2011 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 package Net::DRI::DRD::SIDN;
16  
17 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 2 ▶use base qw/Net::DRI::DRD/;
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22 2 __PACKAGE__->make_exception_for_unavailable_operations(qw/domain_renew domain_transfer_stop domain_update_status domain_update_status_add domain_update_status_del domain_update_status_set contact_transfer contact_transfer_start contact_transfer_stop contact_transfer_query contact_transfer_accept contact_transfer_refuse contact_update_status contact_update_status_add contact_update_status_del contact_update_status_set host_update_status host_update_status_add host_update_status_del host_update_status_set host_update_name_set/);
23  
24 ####################################################################################################
25  
26 sub new
27 {
28 1 ▶ my $class=shift;
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
29 1 my $self=$class->SUPER::new(@_);
30 1 $self->{info}->{host_as_attr}=0;
31 1 $self->{info}->{contact_i18n}=1; ## LOC only
32 1 return $self;
33 }
34  
35 1 ▶sub name { return 'SIDN'; }
Subroutine name: called CC=1 SCAR=0.0
Pod documented
36 1 ▶sub tlds { return (qw/nl/); }
Subroutine tlds: called CC=1 SCAR=0.0
Pod documented
37 0 ▶sub periods { return; } ## registry does not expect any duration at all
Subroutine periods: not called CC=1 SCAR=6.9
Pod documented
38 0 ▶sub object_types { return (qw/domain contact ns/); }
Subroutine object_types: not called CC=1 SCAR=6.9
Pod documented
39 0 ▶sub profile_types { return qw/das epp/; }
Subroutine profile_types: not called CC=1 SCAR=6.9
Pod undocumented
40  
41 sub transport_protocol_default
42 {
43 1 ▶ my ($self,$type)=@_;
Subroutine transport_protocol_default: called CC=3 SCAR=12.5
Pod undocumented
44  
45 1 ▶ return ('Net::DRI::Transport::Socket',{},'Net::DRI::Protocol::DAS::SIDN',{}) if $type eq 'das';
Branch: 1 branch
BranchTrueFalseTotal
if $type eq "das" 0 1 1
46 1 ▶ return ('Net::DRI::Transport::Socket',{},'Net::DRI::Protocol::EPP::Extensions::SIDN',{}) if $type eq 'epp';
Branch: 1 branch
BranchTrueFalseTotal
if $type eq "epp" 1 0 1
47 0 return;
48 }
49  
50 ####################################################################################################
51  
52 sub domain_undelete
53 {
54 0 ▶ my ($self,$ndr,$domain,$rd)=@_;
Subroutine domain_undelete: not called CC=1 SCAR=6.9
Pod undocumented
55 0 $self->enforce_domain_name_constraints($ndr,$domain,'delete_cancel');
56  
57 0 my $rc=$ndr->process('domain','delete_cancel',[$domain,$rd]);
58 0 return $rc;
59 }
60  
61 ####################################################################################################
62 2 1;
63  
64 __END__
65  
66 =pod
67  
68 =head1 NAME
69  
70 Net::DRI::DRD::SIDN - SIDN (.NL) Registry driver for Net::DRI
71  
72 =head1 SYNOPSIS
73  
74 $dri=Net::DRI->new();
75 $dri->add_registry('SIDN');
76  
77 =head1 DESCRIPTION
78  
79 Please see the README file for details.
80  
81 =head1 SUPPORT
82  
83 For now, support questions should be sent to:
84  
85 E<lt>netdri@dotandco.comE<gt>
86  
87 Please also see the SUPPORT file in the distribution.
88  
89 =head1 SEE ALSO
90  
91 E<lt>http://www.dotandco.com/services/software/Net-DRI/E<gt>
92  
93 =head1 AUTHOR
94  
95 Patrick Mevzek, E<lt>netdri@dotandco.comE<gt>
96  
97 =head1 COPYRIGHT
98  
99 Copyright (c) 2009-2011 Patrick Mevzek <netdri@dotandco.com>.
100 All rights reserved.
101  
102 This program is free software; you can redistribute it and/or modify
103 it under the terms of the GNU General Public License as published by
104 the Free Software Foundation; either version 2 of the License, or
105 (at your option) any later version.
106  
107 See the LICENSE file that comes with this distribution for more details.
108  
109 =cut
« DRI/DRD/ZACR.pm ↑ Summary DRI/DRD/Nominet.pm »