line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::Hexonet::Connector::SocketConfig; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
20
|
use 5.026_000; |
|
1
|
|
|
|
|
4
|
|
4
|
1
|
|
|
1
|
|
15
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
23
|
|
5
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
36
|
|
6
|
1
|
|
|
1
|
|
6
|
use utf8; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
5
|
|
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
28
|
use version 0.9917; our $VERSION = version->declare('v2.9.1'); |
|
1
|
|
|
|
|
15
|
|
|
1
|
|
|
|
|
5
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub new { |
12
|
3
|
|
|
3
|
1
|
547
|
my $class = shift; |
13
|
3
|
|
|
|
|
32
|
return bless { |
14
|
|
|
|
|
|
|
entity => q{}, |
15
|
|
|
|
|
|
|
login => q{}, |
16
|
|
|
|
|
|
|
otp => q{}, |
17
|
|
|
|
|
|
|
pw => q{}, |
18
|
|
|
|
|
|
|
remoteaddr => q{}, |
19
|
|
|
|
|
|
|
session => q{}, |
20
|
|
|
|
|
|
|
user => q{} |
21
|
|
|
|
|
|
|
}, $class; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
sub getPOSTData { |
26
|
53
|
|
|
53
|
1
|
121
|
my $self = shift; |
27
|
53
|
|
|
|
|
122
|
my $data = {}; |
28
|
53
|
100
|
|
|
|
195
|
if ( length $self->{entity} ) { |
29
|
52
|
|
|
|
|
155
|
$data->{'s_entity'} = $self->{entity}; |
30
|
|
|
|
|
|
|
} |
31
|
53
|
100
|
|
|
|
149
|
if ( length $self->{login} ) { |
32
|
35
|
|
|
|
|
98
|
$data->{'s_login'} = $self->{login}; |
33
|
|
|
|
|
|
|
} |
34
|
53
|
100
|
|
|
|
154
|
if ( length $self->{otp} ) { |
35
|
1
|
|
|
|
|
2
|
$data->{'s_otp'} = $self->{otp}; |
36
|
|
|
|
|
|
|
} |
37
|
53
|
100
|
|
|
|
163
|
if ( length $self->{pw} ) { |
38
|
35
|
|
|
|
|
84
|
$data->{'s_pw'} = $self->{pw}; |
39
|
|
|
|
|
|
|
} |
40
|
53
|
100
|
|
|
|
192
|
if ( length $self->{remoteaddr} ) { |
41
|
37
|
|
|
|
|
96
|
$data->{'s_remoteaddr'} = $self->{remoteaddr}; |
42
|
|
|
|
|
|
|
} |
43
|
53
|
100
|
|
|
|
136
|
if ( length $self->{session} ) { |
44
|
7
|
|
|
|
|
17
|
$data->{'s_session'} = $self->{session}; |
45
|
|
|
|
|
|
|
} |
46
|
53
|
100
|
|
|
|
140
|
if ( length $self->{user} ) { |
47
|
2
|
|
|
|
|
5
|
$data->{'s_user'} = $self->{user}; |
48
|
|
|
|
|
|
|
} |
49
|
53
|
|
|
|
|
130
|
return $data; |
50
|
|
|
|
|
|
|
} |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
sub getSession { |
54
|
3
|
|
|
3
|
1
|
6
|
my $self = shift; |
55
|
3
|
|
|
|
|
10
|
return $self->{session}; |
56
|
|
|
|
|
|
|
} |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
sub getSystemEntity { |
60
|
1
|
|
|
1
|
1
|
3
|
my $self = shift; |
61
|
1
|
|
|
|
|
4
|
return $self->{entity}; |
62
|
|
|
|
|
|
|
} |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
sub setLogin { |
66
|
12
|
|
|
12
|
1
|
35
|
my ( $self, $value ) = @_; |
67
|
12
|
|
|
|
|
30
|
$self->{session} = q{}; # Empty string |
68
|
12
|
|
|
|
|
31
|
$self->{login} = $value; |
69
|
12
|
|
|
|
|
28
|
return $self; |
70
|
|
|
|
|
|
|
} |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
sub setOTP { |
74
|
8
|
|
|
8
|
1
|
23
|
my ( $self, $value ) = @_; |
75
|
8
|
|
|
|
|
21
|
$self->{session} = q{}; # Empty string |
76
|
8
|
|
|
|
|
18
|
$self->{otp} = $value; |
77
|
8
|
|
|
|
|
19
|
return $self; |
78
|
|
|
|
|
|
|
} |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
sub setPassword { |
82
|
12
|
|
|
12
|
1
|
39
|
my ( $self, $value ) = @_; |
83
|
12
|
|
|
|
|
22
|
$self->{session} = q{}; # Empty string |
84
|
12
|
|
|
|
|
25
|
$self->{pw} = $value; |
85
|
12
|
|
|
|
|
27
|
return $self; |
86
|
|
|
|
|
|
|
} |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
sub setRemoteAddress { |
90
|
3
|
|
|
3
|
1
|
6
|
my ( $self, $value ) = @_; |
91
|
3
|
|
|
|
|
5
|
$self->{remoteaddr} = $value; |
92
|
3
|
|
|
|
|
6
|
return $self; |
93
|
|
|
|
|
|
|
} |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
sub setSession { |
97
|
13
|
|
|
13
|
1
|
33
|
my ( $self, $value ) = @_; |
98
|
13
|
|
|
|
|
31
|
$self->{session} = $value; |
99
|
13
|
|
|
|
|
32
|
$self->{login} = q{}; # Empty string |
100
|
13
|
|
|
|
|
25
|
$self->{pw} = q{}; # Empty string |
101
|
13
|
|
|
|
|
29
|
$self->{otp} = q{}; # Empty string |
102
|
13
|
|
|
|
|
30
|
return $self; |
103
|
|
|
|
|
|
|
} |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
sub setSystemEntity { |
107
|
4
|
|
|
4
|
1
|
11
|
my ( $self, $value ) = @_; |
108
|
4
|
|
|
|
|
8
|
$self->{entity} = $value; |
109
|
4
|
|
|
|
|
7
|
return $self; |
110
|
|
|
|
|
|
|
} |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
|
113
|
|
|
|
|
|
|
sub setUser { |
114
|
2
|
|
|
2
|
1
|
8
|
my ( $self, $value ) = @_; |
115
|
2
|
|
|
|
|
8
|
$self->{user} = $value; |
116
|
2
|
|
|
|
|
7
|
return $self; |
117
|
|
|
|
|
|
|
} |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
1; |
120
|
|
|
|
|
|
|
|
121
|
|
|
|
|
|
|
__END__ |