1## Domain Registry Interface, .MOBI policies 2## 3## Copyright (c) 2006,2007,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::DRD::MOBI; 19 20use strict; 21use warnings; 22 23use base qw/Net::DRI::DRD/; 24 25use DateTime::Duration; 26 27our $VERSION=do { my @r=(q$Revision: 1.6 $=~/\d+/g); sprintf("%d".".%02d" x $#r, @r); }; 28 29=pod 30 31=head1 NAME 32 33Net::DRI::DRD::MOBI - .MOBI policies for Net::DRI 34 35=head1 DESCRIPTION 36 37Please see the README file for details. 38 39=head1 SUPPORT 40 41For now, support questions should be sent to: 42 43E<lt>netdri@dotandco.comE<gt> 44 45Please also see the SUPPORT file in the distribution. 46 47=head1 SEE ALSO 48 49E<lt>http://www.dotandco.com/services/software/Net-DRI/E<gt> 50 51=head1 AUTHOR 52 53Patrick Mevzek, E<lt>netdri@dotandco.comE<gt> 54 55=head1 COPYRIGHT 56 57Copyright (c) 2006,2007,2008,2009 Patrick Mevzek <netdri@dotandco.com>. 58All rights reserved. 59 60This program is free software; you can redistribute it and/or modify 61it under the terms of the GNU General Public License as published by 62the Free Software Foundation; either version 2 of the License, or 63(at your option) any later version. 64 65See the LICENSE file that comes with this distribution for more details. 66 67=cut 68 69#################################################################################################### 70 71sub new 72{ 73 my $class=shift; 74 my $self=$class->SUPER::new(@_); 75 $self->{info}->{host_as_attr}=0; 76 77 bless($self,$class); 78 return $self; 79} 80 81sub periods { return map { DateTime::Duration->new(years => $_) } (1..10); } 82sub name { return 'MOBI'; } 83sub tlds { return ('mobi'); } 84sub object_types { return ('domain','contact','ns'); } 85sub profile_types { return qw/epp whois/; } 86 87sub transport_protocol_default 88{ 89 my ($self,$type)=@_; 90 91 return ('Net::DRI::Transport::Socket',{},'Net::DRI::Protocol::EPP::Extensions::MOBI',{}) if $type eq 'epp'; 92 return ('Net::DRI::Transport::Socket',{remote_host=>'whois.dotmobiregistry.net'},'Net::DRI::Protocol::Whois',{}) if $type eq 'whois'; 93 return; 94} 95 96#################################################################################################### 971; 98