DRI/Protocol/AFNIC/WS.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 12 / 12 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« DRI/Data/Contact/JOBS.pm ↑ Summary DRI/Protocol/AdamsNames/WS.pm »
1 ## Domain Registry Interface, AFNIC Web Services Protocol
2 ##
3 ## Copyright (c) 2005,2008-2010,2013 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 package Net::DRI::Protocol::AFNIC::WS;
16  
17 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
19  
20 1 ▶use base qw(Net::DRI::Protocol);
Subroutine BEGIN: called CC=1 SCAR=0.0
21  
22 use Net::DRI::Exception;
23 use Net::DRI::Util;
24  
25 use Net::DRI::Protocol::AFNIC::WS::Message;
26  
27 =pod
28  
29 =head1 NAME
30  
31 Net::DRI::Protocol::AFNIC::WS - AFNIC Web Services Protocol for Net::DRI
32  
33 =head1 DESCRIPTION
34  
35 Please see the README file for details.
36  
37 =head1 SUPPORT
38  
39 For now, support questions should be sent to:
40  
41 E<lt>netdri@dotandco.comE<gt>
42  
43 Please also see the SUPPORT file in the distribution.
44  
45 =head1 SEE ALSO
46  
47 E<lt>http://www.dotandco.com/services/software/Net-DRI/E<gt>
48  
49 =head1 AUTHOR
50  
51 Patrick Mevzek, E<lt>netdri@dotandco.comE<gt>
52  
53 =head1 COPYRIGHT
54  
55 Copyright (c) 2005,2008-2010,2013 Patrick Mevzek <netdri@dotandco.com>.
56 All rights reserved.
57  
58 This program is free software; you can redistribute it and/or modify
59 it under the terms of the GNU General Public License as published by
60 the Free Software Foundation; either version 2 of the License, or
61 (at your option) any later version.
62  
63 See the LICENSE file that comes with this distribution for more details.
64  
65 =cut
66  
67 ####################################################################################################
68  
69 sub new
70 {
71 my ($c,$ctx,$rp)=@_;
72 my $self=$c->SUPER::new($ctx);
73 $self->name('afnic_ws');
74 $self->version('0.1');
75 $self->factories('message',sub { my $m=Net::DRI::Protocol::AFNIC::WS::Message->new(); $m->version('0.1'); return $m; });
76 $self->_load($rp);
77 return $self;
78 }
79  
80 sub _load
81 {
82 my ($self,$rp)=@_;
83 my @class=map { 'Net::DRI::Protocol::AFNIC::WS::'.$_ } ('Domain');
84 return $self->SUPER::_load(@class);
85 }
86  
87 ####################################################################################################
88 1;
« DRI/Data/Contact/JOBS.pm ↑ Summary DRI/Protocol/AdamsNames/WS.pm »