| 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 | 1 | ▶ | { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||
| 28 | 1 | my $class=shift; | |||||||||
| 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 | 1 | ▶ | { | ||||||||
|
Subroutine
transport_protocol_default: called CC=3 SCAR=12.5
Pod
undocumented
| |||||||||||
| 43 | 1 | my ($self,$type)=@_; | |||||||||
| 44 | |||||||||||
| 45 | 1 | ▶ | return ('Net::DRI::Transport::Socket',{},'Net::DRI::Protocol::DAS::SIDN',{}) if $type eq 'das'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 46 | 1 | ▶ | return ('Net::DRI::Transport::Socket',{},'Net::DRI::Protocol::EPP::Extensions::SIDN',{}) if $type eq 'epp'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 47 | 0 | return; | |||||||||
| 48 | } | ||||||||||
| 49 | |||||||||||
| 50 | #################################################################################################### | ||||||||||
| 51 | |||||||||||
| 52 | sub domain_undelete | ||||||||||
| 53 | 0 | ▶ | { | ||||||||
|
Subroutine
domain_undelete: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 54 | 0 | my ($self,$ndr,$domain,$rd)=@_; | |||||||||
| 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__ | ||||||||||