line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::EPP::Frame::Command::Check::Domain; |
2
|
1
|
|
|
1
|
|
8
|
use base qw(Net::EPP::Frame::Command::Check); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
96
|
|
3
|
1
|
|
|
1
|
|
429
|
use Net::EPP::Frame::ObjectSpec; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
64
|
|
4
|
1
|
|
|
1
|
|
8
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
137
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
=pod |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
=head1 NAME |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
Net::EPP::Frame::Command::Check::Domain - an instance of L |
11
|
|
|
|
|
|
|
for domain names. |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 SYNOPSIS |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
use Net::EPP::Frame::Command::Check::Domain; |
16
|
|
|
|
|
|
|
use strict; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
my $check = Net::EPP::Frame::Command::Check::Domain->new; |
19
|
|
|
|
|
|
|
$check->addDomain('example-1.tld'); |
20
|
|
|
|
|
|
|
$check->addDomain('example-2.tld'); |
21
|
|
|
|
|
|
|
$check->addDomain('example-2.tld'); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
print $check->toString(1); |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
This results in an XML document like this: |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
30
|
|
|
|
|
|
|
xsi:schemaLocation="urn:ietf:params:xml:ns:epp-1.0 |
31
|
|
|
|
|
|
|
epp-1.0.xsd"> |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0" |
36
|
|
|
|
|
|
|
xsi:schemaLocation="urn:ietf:params:xml:ns:domain-1.0 |
37
|
|
|
|
|
|
|
domain-1.0.xsd"> |
38
|
|
|
|
|
|
|
example-1.tldE/domain:name> |
39
|
|
|
|
|
|
|
example-2.tldE/domain:name> |
40
|
|
|
|
|
|
|
example-3.tldE/domain:name> |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
0cf1b8f7e14547d26f03b7641660c641d9e79f45 |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 OBJECT HIERARCHY |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
L |
50
|
|
|
|
|
|
|
+----L |
51
|
|
|
|
|
|
|
+----L |
52
|
|
|
|
|
|
|
+----L |
53
|
|
|
|
|
|
|
+----L |
54
|
|
|
|
|
|
|
+----L |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=cut |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
sub new { |
59
|
0
|
|
|
0
|
1
|
|
my $package = shift; |
60
|
0
|
|
|
|
|
|
my $self = bless($package->SUPER::new('check'), $package); |
61
|
|
|
|
|
|
|
|
62
|
0
|
|
|
|
|
|
$self->addObject(Net::EPP::Frame::ObjectSpec->spec('domain')); |
63
|
|
|
|
|
|
|
|
64
|
0
|
|
|
|
|
|
return $self; |
65
|
|
|
|
|
|
|
} |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
=pod |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=head1 METHODS |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
$frame->addDomain($domain_name); |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
This adds a domain name to the list of domains to be checked. |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
=cut |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
sub addDomain { |
78
|
0
|
|
|
0
|
0
|
|
my ($self, $domain) = @_; |
79
|
|
|
|
|
|
|
|
80
|
0
|
|
|
|
|
|
my $name = $self->createElement('domain:name'); |
81
|
0
|
|
|
|
|
|
$name->appendText($domain); |
82
|
|
|
|
|
|
|
|
83
|
0
|
|
|
|
|
|
$self->getNode('check')->getChildNodes->shift->appendChild($name); |
84
|
|
|
|
|
|
|
|
85
|
0
|
|
|
|
|
|
return 1; |
86
|
|
|
|
|
|
|
} |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
1; |