line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package AMF::Connection::MessageHeader; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
31
|
|
4
|
1
|
|
|
1
|
|
4
|
use Carp; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
368
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub new { |
7
|
0
|
|
|
0
|
0
|
|
my $proto = shift; |
8
|
0
|
|
0
|
|
|
|
my $class = ref($proto) || $proto; |
9
|
0
|
|
|
|
|
|
my ($name, $value, $required) = @_; |
10
|
|
|
|
|
|
|
|
11
|
0
|
|
|
|
|
|
my $self = {}; |
12
|
|
|
|
|
|
|
|
13
|
0
|
|
|
|
|
|
$self->{'name'} = $name; |
14
|
|
|
|
|
|
|
|
15
|
0
|
|
|
|
|
|
$self->{'value'} = $value; |
16
|
|
|
|
|
|
|
|
17
|
0
|
0
|
|
|
|
|
$self->{'required'} = ($required=~m/(1|yes)/) ? 1 : 0; |
18
|
|
|
|
|
|
|
|
19
|
0
|
|
|
|
|
|
return bless($self, $class); |
20
|
|
|
|
|
|
|
}; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub isRequired { |
23
|
0
|
|
|
0
|
0
|
|
my ($class) = @_; |
24
|
|
|
|
|
|
|
|
25
|
0
|
|
|
|
|
|
return $class->{'required'}; |
26
|
|
|
|
|
|
|
}; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
sub getName { |
29
|
0
|
|
|
0
|
0
|
|
my ($class) = @_; |
30
|
|
|
|
|
|
|
|
31
|
0
|
|
|
|
|
|
return $class->{'name'}; |
32
|
|
|
|
|
|
|
}; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub getValue { |
35
|
0
|
|
|
0
|
0
|
|
my ($class) = @_; |
36
|
|
|
|
|
|
|
|
37
|
0
|
|
|
|
|
|
return $class->{'value'}; |
38
|
|
|
|
|
|
|
}; |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
sub setName { |
41
|
0
|
|
|
0
|
0
|
|
my ($class, $name) = @_; |
42
|
|
|
|
|
|
|
|
43
|
0
|
|
|
|
|
|
$class->{'name'} = $name; |
44
|
|
|
|
|
|
|
}; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
sub setValue { |
47
|
0
|
|
|
0
|
0
|
|
my ($class, $value) = @_; |
48
|
|
|
|
|
|
|
|
49
|
0
|
|
|
|
|
|
$class->{'value'} = $value; |
50
|
|
|
|
|
|
|
}; |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
sub setRequired { |
53
|
0
|
|
|
0
|
0
|
|
my ($class, $required) = @_; |
54
|
|
|
|
|
|
|
|
55
|
0
|
0
|
|
|
|
|
$class->{'required'} = ($required) ? 1 : 0 ; |
56
|
|
|
|
|
|
|
}; |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
1; |
60
|
|
|
|
|
|
|
__END__ |