line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Messaging::Courier::ExampleMessage; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
1772
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
27
|
|
4
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
20
|
|
5
|
|
|
|
|
|
|
|
6
|
1
|
|
|
1
|
|
324
|
use XML::LibXML; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
use Messaging::Courier::Message; |
8
|
|
|
|
|
|
|
use Messaging::Courier::ExampleReply; |
9
|
|
|
|
|
|
|
use base qw( Messaging::Courier::Message ); |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub username { |
12
|
|
|
|
|
|
|
my $self = shift; |
13
|
|
|
|
|
|
|
if (@_) { |
14
|
|
|
|
|
|
|
$self->{ username } = shift; |
15
|
|
|
|
|
|
|
return $self; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
return $self->{ username }; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub password { |
21
|
|
|
|
|
|
|
my $self = shift; |
22
|
|
|
|
|
|
|
if (@_) { |
23
|
|
|
|
|
|
|
$self->{ password } = shift; |
24
|
|
|
|
|
|
|
return $self; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
return $self->{ password }; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub serialize { |
30
|
|
|
|
|
|
|
my $self = shift; |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
$self->addNode( 'username', contents => $self->username); |
33
|
|
|
|
|
|
|
$self->addNode( 'password', contents => $self->password); |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub reply_class { |
37
|
|
|
|
|
|
|
return 'Messaging::Courier::ExampleReply'; |
38
|
|
|
|
|
|
|
} |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
1; |