1## Domain Registry Interface, DAS Protocol for AdamsNames 2## as specified on http://www.adamsnames.tc/bulk/querying.html 3## 4## Copyright (c) 2009 Patrick Mevzek <netdri@dotandco.com>. All rights reserved. 5## 6## This file is part of Net::DRI 7## 8## Net::DRI is free software; you can redistribute it and/or modify 9## it under the terms of the GNU General Public License as published by 10## the Free Software Foundation; either version 2 of the License, or 11## (at your option) any later version. 12## 13## See the LICENSE file that comes with this distribution for more details. 14# 15# 16# 17#################################################################################################### 18 19package Net::DRI::Protocol::DAS::AdamsNames; 20 21use strict; 22use warnings; 23 24use base qw(Net::DRI::Protocol); 25 26use Net::DRI::Util; 27use Net::DRI::Protocol::DAS::AdamsNames::Message; 28 29our $VERSION=do { my @r=(q$Revision: 1.1 $=~/\d+/g); sprintf("%d".".%02d" x $#r, @r); }; 30 31=pod 32 33=head1 NAME 34 35Net::DRI::Protocol::DAS::AdamsNames - AdamsNames DAS Protocol (Domain Availability Service) 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) 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('DAS'); 78 my $version=Net::DRI::Util::check_equal($rp->{version},['1.0'],'1.0'); 79 $self->version($version); 80 $self->factories('message',sub { return Net::DRI::Protocol::DAS::AdamsNames::Message->new(@_)->version($version); }); 81 $self->_load($rp); 82 return $self; 83} 84 85sub _load 86{ 87 my ($self,$rp)=@_; 88 $self->SUPER::_load('Net::DRI::Protocol::DAS::AdamsNames::Domain'); 89} 90 91sub transport_default 92{ 93 my ($self)=@_; 94 return (protocol_connection => 'Net::DRI::Protocol::DAS::AdamsNames::Connection', protocol_version => 1); 95} 96 97#################################################################################################### 981; 99