1## Domain Registry Interface, AFNIC Web Services Protocol 2## 3## Copyright (c) 2005,2008,2009 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# 16#################################################################################################### 17 18package Net::DRI::Protocol::AFNIC::WS; 19 20use strict; 21 22use base qw(Net::DRI::Protocol); 23 24use Net::DRI::Exception; 25use Net::DRI::Util; 26 27use Net::DRI::Protocol::AFNIC::WS::Message; 28 29our $VERSION=do { my @r=(q$Revision: 1.4 $=~/\d+/g); sprintf("%d".".%02d" x $#r, @r); }; 30 31=pod 32 33=head1 NAME 34 35Net::DRI::Protocol::AFNIC::WS - AFNIC Web Services Protocol 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 55Patrick Mevzek, E<lt>netdri@dotandco.comE<gt> 56 57=head1 COPYRIGHT 58 59Copyright (c) 2005,2008,2009 Patrick Mevzek <netdri@dotandco.com>. 60All rights reserved. 61 62This program is free software; you can redistribute it and/or modify 63it under the terms of the GNU General Public License as published by 64the Free Software Foundation; either version 2 of the License, or 65(at your option) any later version. 66 67See the LICENSE file that comes with this distribution for more details. 68 69=cut 70 71#################################################################################################### 72 73sub new 74{ 75 my ($c,$drd,$rp)=@_; 76 my $self=$c->SUPER::new(); 77 $self->name('afnic_ws'); 78 $self->version($VERSION); 79 $self->factories('message',sub { my $m=Net::DRI::Protocol::AFNIC::WS::Message->new(); $m->version($VERSION); return $m; }); 80 $self->_load($rp); 81 return $self; 82} 83 84sub _load 85{ 86 my ($self,$rp)=@_; 87 my @class=map { 'Net::DRI::Protocol::AFNIC::WS::'.$_ } ('Domain'); 88 $self->SUPER::_load(@class); 89} 90 91#################################################################################################### 921; 93