line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# Copyright (c) 2016 CentralNic Ltd. All rights reserved. This program is |
2
|
|
|
|
|
|
|
# free software; you can redistribute it and/or modify it under the same |
3
|
|
|
|
|
|
|
# terms as Perl itself. |
4
|
|
|
|
|
|
|
# |
5
|
|
|
|
|
|
|
# $Id: Login.pm,v 1.5 2011/12/03 11:44:52 gavin Exp $ |
6
|
|
|
|
|
|
|
package Net::EPP::Frame::Command::Login; |
7
|
1
|
|
|
1
|
|
5
|
use base qw(Net::EPP::Frame::Command); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
68
|
|
8
|
1
|
|
|
1
|
|
3
|
use strict; |
|
1
|
|
|
|
|
9
|
|
|
1
|
|
|
|
|
181
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=pod |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 NAME |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
Net::EPP::Frame::Command::Login - an instance of L |
15
|
|
|
|
|
|
|
for the EPP CloginE> command. |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
=head1 OBJECT HIERARCHY |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
L |
20
|
|
|
|
|
|
|
+----L |
21
|
|
|
|
|
|
|
+----L |
22
|
|
|
|
|
|
|
+----L |
23
|
|
|
|
|
|
|
+----L |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
=cut |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub _addCommandElements { |
28
|
0
|
|
|
0
|
|
|
my $self = shift; |
29
|
0
|
|
|
|
|
|
$self->getNode('login')->addChild($self->createElement('clID')); |
30
|
0
|
|
|
|
|
|
$self->getNode('login')->addChild($self->createElement('pw')); |
31
|
0
|
|
|
|
|
|
$self->getNode('login')->addChild($self->createElement('options')); |
32
|
|
|
|
|
|
|
|
33
|
0
|
|
|
|
|
|
$self->getNode('options')->addChild($self->createElement('version')); |
34
|
0
|
|
|
|
|
|
$self->getNode('options')->addChild($self->createElement('lang')); |
35
|
|
|
|
|
|
|
|
36
|
0
|
|
|
|
|
|
$self->getNode('login')->addChild($self->createElement('svcs')); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
=pod |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 METHODS |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
my $node = $frame->clID; |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
This method returns the L object corresponding to the |
46
|
|
|
|
|
|
|
CclIDE> element. |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
my $node = $frame->pw; |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
This method returns the L object corresponding to the |
51
|
|
|
|
|
|
|
CpwE> element. |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
my $node = $frame->newPW; |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
This method returns the L object corresponding to the |
56
|
|
|
|
|
|
|
CnewPWE> element. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
my $node = $frame->svcs; |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
This method returns the L object corresponding to the |
61
|
|
|
|
|
|
|
CsvcsE> element. |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
my $node = $frame->options; |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
This method returns the L object corresponding to the |
66
|
|
|
|
|
|
|
CoptionsE> element. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
my $node = $frame->version; |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
This method returns the L object corresponding to the |
71
|
|
|
|
|
|
|
CversionE> element. |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
my $node = $frame->lang; |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
This method returns the L object corresponding to the |
76
|
|
|
|
|
|
|
ClangE> element. |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=cut |
79
|
|
|
|
|
|
|
|
80
|
0
|
|
|
0
|
0
|
|
sub clID { $_[0]->getNode('clID') } |
81
|
0
|
|
|
0
|
0
|
|
sub pw { $_[0]->getNode('pw') } |
82
|
0
|
|
|
0
|
0
|
|
sub newPW { $_[0]->getNode('newPW') } |
83
|
0
|
|
|
0
|
0
|
|
sub svcs { $_[0]->getNode('svcs') } |
84
|
0
|
|
|
0
|
0
|
|
sub options { $_[0]->getNode('options') } |
85
|
0
|
|
|
0
|
0
|
|
sub version { $_[0]->getNode('version') } |
86
|
0
|
|
|
0
|
0
|
|
sub lang { $_[0]->getNode('lang') } |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
=pod |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
=head1 AUTHOR |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
CentralNic Ltd (http://www.centralnic.com/). |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=head1 COPYRIGHT |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
This module is (c) 2016 CentralNic Ltd. This module is free software; you can |
97
|
|
|
|
|
|
|
redistribute it and/or modify it under the same terms as Perl itself. |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
=head1 SEE ALSO |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
=over |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
=item * L |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
=back |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
=cut |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
1; |