line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# -*- Mode: Perl; indent-tabs-mode: nil; -*- |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package Servlet::ServletRequestWrapper; |
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
7934
|
use base qw(Servlet::ServletRequest); |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1260
|
|
6
|
2
|
|
|
2
|
|
2276
|
use fields qw(request); |
|
2
|
|
|
|
|
2856
|
|
|
2
|
|
|
|
|
11
|
|
7
|
2
|
|
|
2
|
|
107
|
use strict; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
43
|
|
8
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
1520
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub new { |
11
|
2
|
|
|
2
|
1
|
13492
|
my $self = shift; |
12
|
2
|
|
|
|
|
6
|
my $request = shift; |
13
|
|
|
|
|
|
|
|
14
|
2
|
50
|
|
|
|
21
|
$self = fields::new($self) unless ref $self; |
15
|
|
|
|
|
|
|
|
16
|
2
|
|
|
|
|
134
|
$self->{request} = $request; |
17
|
|
|
|
|
|
|
|
18
|
2
|
|
|
|
|
15
|
return $self; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub getAttribute { |
22
|
0
|
|
|
0
|
1
|
0
|
my $self = shift; |
23
|
|
|
|
|
|
|
|
24
|
0
|
|
|
|
|
0
|
return $self->getRequest()->getAttribute(@_); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub getAttributeNames { |
28
|
1
|
|
|
1
|
1
|
3
|
my $self = shift; |
29
|
|
|
|
|
|
|
|
30
|
1
|
|
|
|
|
9
|
return $self->getRequest()->getAttributeNames(@_); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub getCharacterEncoding { |
34
|
1
|
|
|
1
|
1
|
1359
|
my $self = shift; |
35
|
|
|
|
|
|
|
|
36
|
1
|
|
|
|
|
4
|
return $self->getRequest()->getCharacterEncoding(@_); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
sub getContentLength { |
40
|
1
|
|
|
1
|
1
|
435
|
my $self = shift; |
41
|
|
|
|
|
|
|
|
42
|
1
|
|
|
|
|
16
|
return $self->getRequest()->getContentLength(@_); |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub getContentType { |
46
|
1
|
|
|
1
|
1
|
565
|
my $self = shift; |
47
|
|
|
|
|
|
|
|
48
|
1
|
|
|
|
|
4
|
return $self->getRequest()->getContentType(@_); |
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
sub getInputHandle { |
52
|
1
|
|
|
1
|
1
|
78
|
my $self = shift; |
53
|
|
|
|
|
|
|
|
54
|
1
|
|
|
|
|
3
|
return $self->getRequest()->getInputHandle(@_); |
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
sub getLocale { |
58
|
1
|
|
|
1
|
1
|
391
|
my $self = shift; |
59
|
|
|
|
|
|
|
|
60
|
1
|
|
|
|
|
4
|
return $self->getRequest()->getLocale(@_); |
61
|
|
|
|
|
|
|
} |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
sub getLocales { |
64
|
1
|
|
|
1
|
1
|
462
|
my $self = shift; |
65
|
|
|
|
|
|
|
|
66
|
1
|
|
|
|
|
5
|
return $self->getRequest()->getLocales(@_); |
67
|
|
|
|
|
|
|
} |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
sub getParameter { |
70
|
1
|
|
|
1
|
1
|
480
|
my $self = shift; |
71
|
|
|
|
|
|
|
|
72
|
1
|
|
|
|
|
4
|
return $self->getRequest()->getParameter(@_); |
73
|
|
|
|
|
|
|
} |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
sub getParameterMap { |
76
|
1
|
|
|
1
|
1
|
1426
|
my $self = shift; |
77
|
|
|
|
|
|
|
|
78
|
1
|
|
|
|
|
5
|
return $self->getRequest()->getParameterMap(@_); |
79
|
|
|
|
|
|
|
} |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
sub getParameterNames { |
82
|
1
|
|
|
1
|
1
|
786
|
my $self = shift; |
83
|
|
|
|
|
|
|
|
84
|
1
|
|
|
|
|
4
|
return $self->getRequest()->getParameterNames(@_); |
85
|
|
|
|
|
|
|
} |
86
|
|
|
|
|
|
|
|
87
|
|
|
|
|
|
|
sub getParameterValues { |
88
|
1
|
|
|
1
|
1
|
117
|
my $self = shift; |
89
|
|
|
|
|
|
|
|
90
|
1
|
|
|
|
|
111
|
return $self->getRequest()->getParameterValues(@_); |
91
|
|
|
|
|
|
|
} |
92
|
|
|
|
|
|
|
|
93
|
|
|
|
|
|
|
sub getProtocol { |
94
|
1
|
|
|
1
|
1
|
475
|
my $self = shift; |
95
|
|
|
|
|
|
|
|
96
|
1
|
|
|
|
|
5
|
return $self->getRequest()->getProtocol(@_); |
97
|
|
|
|
|
|
|
} |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
sub getReader { |
100
|
1
|
|
|
1
|
1
|
95
|
my $self = shift; |
101
|
|
|
|
|
|
|
|
102
|
1
|
|
|
|
|
4
|
return $self->getRequest()->getReader(@_); |
103
|
|
|
|
|
|
|
} |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
sub getRemoteAddr { |
106
|
1
|
|
|
1
|
1
|
92
|
my $self = shift; |
107
|
|
|
|
|
|
|
|
108
|
1
|
|
|
|
|
3
|
return $self->getRequest()->getRemoteAddr(@_); |
109
|
|
|
|
|
|
|
} |
110
|
|
|
|
|
|
|
|
111
|
|
|
|
|
|
|
sub getRemoteHost { |
112
|
1
|
|
|
1
|
1
|
88
|
my $self = shift; |
113
|
|
|
|
|
|
|
|
114
|
1
|
|
|
|
|
12
|
return $self->getRequest()->getRemoteHost(@_); |
115
|
|
|
|
|
|
|
} |
116
|
|
|
|
|
|
|
|
117
|
|
|
|
|
|
|
sub getRequest { |
118
|
44
|
|
|
44
|
1
|
75
|
my $self = shift; |
119
|
|
|
|
|
|
|
|
120
|
44
|
|
|
|
|
632
|
return $self->{request}; |
121
|
|
|
|
|
|
|
} |
122
|
|
|
|
|
|
|
|
123
|
|
|
|
|
|
|
sub getRequestDispatcher { |
124
|
1
|
|
|
1
|
1
|
1932
|
my $self = shift; |
125
|
|
|
|
|
|
|
|
126
|
1
|
|
|
|
|
6
|
return $self->getRequest()->getRequestDispatcher(@_); |
127
|
|
|
|
|
|
|
} |
128
|
|
|
|
|
|
|
|
129
|
|
|
|
|
|
|
sub getScheme { |
130
|
0
|
|
|
0
|
1
|
0
|
my $self = shift; |
131
|
|
|
|
|
|
|
|
132
|
0
|
|
|
|
|
0
|
return $self->getRequest()->getScheme(@_); |
133
|
|
|
|
|
|
|
} |
134
|
|
|
|
|
|
|
|
135
|
|
|
|
|
|
|
sub getServerName { |
136
|
1
|
|
|
1
|
1
|
98
|
my $self = shift; |
137
|
|
|
|
|
|
|
|
138
|
1
|
|
|
|
|
3
|
return $self->getRequest()->getServerName(@_); |
139
|
|
|
|
|
|
|
} |
140
|
|
|
|
|
|
|
|
141
|
|
|
|
|
|
|
sub getServerPort { |
142
|
1
|
|
|
1
|
1
|
79
|
my $self = shift; |
143
|
|
|
|
|
|
|
|
144
|
1
|
|
|
|
|
4
|
return $self->getRequest()->getServerPort(@_); |
145
|
|
|
|
|
|
|
} |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
sub isSecure { |
148
|
1
|
|
|
1
|
1
|
76
|
my $self = shift; |
149
|
|
|
|
|
|
|
|
150
|
1
|
|
|
|
|
3
|
return $self->getRequest()->isSecure(@_); |
151
|
|
|
|
|
|
|
} |
152
|
|
|
|
|
|
|
|
153
|
|
|
|
|
|
|
sub removeAttribute { |
154
|
1
|
|
|
1
|
1
|
703
|
my $self = shift; |
155
|
|
|
|
|
|
|
|
156
|
1
|
|
|
|
|
8
|
return $self->getRequest()->removeAttribute(@_); |
157
|
|
|
|
|
|
|
} |
158
|
|
|
|
|
|
|
|
159
|
|
|
|
|
|
|
sub setAttribute { |
160
|
1
|
|
|
1
|
1
|
974
|
my $self = shift; |
161
|
|
|
|
|
|
|
|
162
|
1
|
|
|
|
|
7
|
return $self->getRequest()->setAttribute(@_); |
163
|
|
|
|
|
|
|
} |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
sub setCharacterEncoding { |
166
|
1
|
|
|
1
|
1
|
724
|
my $self = shift; |
167
|
|
|
|
|
|
|
|
168
|
1
|
|
|
|
|
5
|
return $self->getRequest()->setCharacterEncoding(@_); |
169
|
|
|
|
|
|
|
} |
170
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
sub setRequest { |
172
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
173
|
0
|
|
|
|
|
|
my $request = shift; |
174
|
|
|
|
|
|
|
|
175
|
0
|
|
|
|
|
|
$self->{request} = $request; |
176
|
|
|
|
|
|
|
|
177
|
0
|
|
|
|
|
|
return 1; |
178
|
|
|
|
|
|
|
} |
179
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
1; |
181
|
|
|
|
|
|
|
__END__ |