| Net-DRI documentation | Contained in the Net-DRI distribution. |
Net::DRI::Protocol::EPP::Extensions::IT::Domain - .IT EPP Domain extension for Net::DRI
For now, support questions should be sent to:
<noc@towertech.it>
Please also see the SUPPORT file in the distribution.
Alessandro Zummo, <a.zummo@towertech.it>
Copyright (C) 2009-2010 Tower Technologies. All rights reserved.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License v2 as published by the Free Software Foundation.
See the LICENSE file that comes with this distribution for more details.
| Net-DRI documentation | Contained in the Net-DRI distribution. |
## Domain Registry Interface, .IT Domain extension ## ## Copyright (C) 2009-2010 Tower Technologies. All rights reserved. ## ## This program free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License v2. ## # # # package Net::DRI::Protocol::EPP::Extensions::IT::Domain; use strict; use warnings; our $VERSION = do { my @r = ( q$Revision: 1.1 $ =~ /\d+/gxm ); sprintf( "%d" . ".%02d" x $#r, @r ); };
sub register_commands { my ($class, $version) = @_; my $ops = { 'info' => [ undef, \&parse ], }; return { 'domain' => $ops, }; } sub parse { my ($po, $type, $action, $name, $info) = @_; my $msg = $po->message; my $ns = $msg->ns('it_domain'); my $infdata = $msg->get_extension('it_domain', 'infData'); my $infns = $msg->get_extension('it_domain', 'infNsToValidateData'); if (defined $infdata) { $info->{'domain'}{$name}{'own_status'} = $infdata->getChildrenByTagNameNS($ns, 'ownStatus') ->shift ->getAttribute('s'); } if (defined $infns) { # cannot match ./extdom:nsToValidate/domain:hostAttr/domain:hostName # due to mixed namespace foreach ($infns->findnodes('./extdom:nsToValidate/*/*')) { push(@{$info->{'domain'}{$name}{'ns_to_validate'}}, $_->textContent) if $_->getName eq 'domain:hostName'; } } return 1; } 1;