1## Domain Registry Interface, NORID (.NO) EPP extensions 2## 3## Copyright (c) 2008-2010 UNINETT Norid AS, E<lt>http://www.norid.noE<gt>, 4## Trond Haugen E<lt>info@norid.noE<gt> 5## All rights reserved. 6## 7## This file is part of Net::DRI 8## 9## Net::DRI is free software; you can redistribute it and/or modify 10## it under the terms of the GNU General Public License as published by 11## the Free Software Foundation; either version 2 of the License, or 12## (at your option) any later version. 13## 14## See the LICENSE file that comes with this distribution for more details. 15# 16# 17# 18#################################################################################################### 19 20package Net::DRI::Protocol::EPP::Extensions::NO; 21 22use strict; 23use warnings; 24 25use base qw/Net::DRI::Protocol::EPP/; 26 27use Net::DRI::Data::Contact::NO; 28 29our $VERSION = do { my @r = ( q$Revision: 1.5 $ =~ /\d+/gmx ); sprintf( "%d" . ".%02d" x $#r, @r ); }; 30 31=pod 32 33=head1 NAME 34 35Net::DRI::Protocol::EPP::Extensions::NO - .NO EPP extensions for Net::DRI 36 37=head1 DESCRIPTION 38 39Please see the README file for details. 40 41=head1 SUPPORT 42 43For now, support questions should be sent to: 44 45E<lt>netdri@dotandco.comE<gt> 46 47Please also see the SUPPORT file in the distribution. 48 49=head1 SEE ALSO 50 51E<lt>http://www.dotandco.com/services/software/Net-DRI/E<gt> 52 53=head1 AUTHOR 54 55Trond Haugen, E<lt>info@norid.noE<gt> 56 57=head1 COPYRIGHT 58 59Copyright (c) 2008-2010 UNINETT Norid AS, E<lt>http://www.norid.noE<gt>, 60Trond Haugen E<lt>info@norid.noE<gt> 61All rights reserved. 62 63This program is free software; you can redistribute it and/or modify 64it under the terms of the GNU General Public License as published by 65the Free Software Foundation; either version 2 of the License, or 66(at your option) any later version. 67 68See the LICENSE file that comes with this distribution for more details. 69 70=cut 71 72#################################################################################################### 73 74sub setup { 75 my ($self,$rp)=@_; 76 $self->ns({ no_contact => [ 'http://www.norid.no/xsd/no-ext-contact-1.0','no-ext-contact-1.0.xsd' ], 77 no_domain => [ 'http://www.norid.no/xsd/no-ext-domain-1.0','no-ext-domain-1.0.xsd' ], 78 no_host => [ 'http://www.norid.no/xsd/no-ext-host-1.0','no-ext-host-1.0.xsd' ], 79 no_result => [ 'http://www.norid.no/xsd/no-ext-result-1.0','no-ext-result-1.0.xsd' ], 80 no_epp => [ 'http://www.norid.no/xsd/no-ext-epp-1.0','no-ext-epp-1.0.xsd' ], 81 }); 82 83 84 foreach my $o (qw/mobilephone identity xdisclose facets/) { $self->capabilities('contact_update',$o,['set']); } 85 foreach my $o (qw/organization rolecontact xemail/) { $self->capabilities('contact_update',$o,['add','del']); } 86 $self->capabilities('host_update','contact',['set']); 87 $self->capabilities('host_update','facets',['set']); 88 $self->capabilities('domain_update','facets',['set']); 89 $self->factories('contact',sub { return Net::DRI::Data::Contact::NO->new(); }); 90 91 return; 92} 93 94sub default_extensions { return qw/NO::Domain NO::Contact NO::Host NO::Result NO::Message/; } 95 96#################################################################################################### 971; 98