line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# -*- Mode: Perl; indent-tabs-mode: nil; -*- |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
package Servlet::ServletResponseWrapper; |
4
|
|
|
|
|
|
|
|
5
|
2
|
|
|
2
|
|
10451
|
use base qw(Servlet::ServletResponse); |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
1286
|
|
6
|
2
|
|
|
2
|
|
1821
|
use fields qw(response); |
|
2
|
|
|
|
|
3590
|
|
|
2
|
|
|
|
|
12
|
|
7
|
2
|
|
|
2
|
|
133
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
59
|
|
8
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
1159
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub new { |
11
|
2
|
|
|
2
|
1
|
10533
|
my $self = shift; |
12
|
2
|
|
|
|
|
6
|
my $response = shift; |
13
|
|
|
|
|
|
|
|
14
|
2
|
50
|
|
|
|
17
|
$self = fields::new($self) unless ref $self; |
15
|
|
|
|
|
|
|
|
16
|
2
|
|
|
|
|
123
|
$self->{response} = $response; |
17
|
|
|
|
|
|
|
|
18
|
2
|
|
|
|
|
18
|
return $self; |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub flushBuffer { |
22
|
1
|
|
|
1
|
1
|
3
|
my $self = shift; |
23
|
|
|
|
|
|
|
|
24
|
1
|
|
|
|
|
5
|
$self->getResponse()->flushBuffer(); |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub getBufferSize { |
28
|
1
|
|
|
1
|
1
|
426
|
my $self = shift; |
29
|
|
|
|
|
|
|
|
30
|
1
|
|
|
|
|
5
|
$self->getResponse()->getBufferSize(); |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub getCharacterEncoding { |
34
|
1
|
|
|
1
|
1
|
500
|
my $self = shift; |
35
|
|
|
|
|
|
|
|
36
|
1
|
|
|
|
|
4
|
$self->getResponse()->getCharacterEncoding(); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
sub getLocale { |
40
|
1
|
|
|
1
|
1
|
561
|
my $self = shift; |
41
|
|
|
|
|
|
|
|
42
|
1
|
|
|
|
|
5
|
$self->getResponse()->getLocale(); |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
sub getOutputHandle { |
46
|
1
|
|
|
1
|
1
|
481
|
my $self = shift; |
47
|
|
|
|
|
|
|
|
48
|
1
|
|
|
|
|
37
|
$self->getResponse()->getOutputHandle(); |
49
|
|
|
|
|
|
|
} |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
sub getWriter { |
52
|
1
|
|
|
1
|
1
|
471
|
my $self = shift; |
53
|
|
|
|
|
|
|
|
54
|
1
|
|
|
|
|
10
|
$self->getResponse()->getWriter(); |
55
|
|
|
|
|
|
|
} |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
sub getResponse { |
58
|
24
|
|
|
24
|
1
|
38
|
my $self = shift; |
59
|
|
|
|
|
|
|
|
60
|
24
|
|
|
|
|
282
|
return $self->{response}; |
61
|
|
|
|
|
|
|
} |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
sub isCommitted { |
64
|
1
|
|
|
1
|
1
|
372
|
my $self = shift; |
65
|
|
|
|
|
|
|
|
66
|
1
|
|
|
|
|
4
|
$self->getResponse()->isCommitted(); |
67
|
|
|
|
|
|
|
} |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
sub reset { |
70
|
1
|
|
|
1
|
1
|
514
|
my $self = shift; |
71
|
|
|
|
|
|
|
|
72
|
1
|
|
|
|
|
5
|
$self->getResponse()->reset(); |
73
|
|
|
|
|
|
|
} |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
sub resetBuffer { |
76
|
1
|
|
|
1
|
1
|
598
|
my $self = shift; |
77
|
|
|
|
|
|
|
|
78
|
1
|
|
|
|
|
5
|
$self->getResponse()->resetBuffer(); |
79
|
|
|
|
|
|
|
} |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
sub setBufferSize { |
82
|
1
|
|
|
1
|
1
|
689
|
my $self = shift; |
83
|
1
|
|
|
|
|
3
|
my $size = shift; |
84
|
|
|
|
|
|
|
|
85
|
1
|
|
|
|
|
4
|
$self->getResponse()->setBufferSize($size); |
86
|
|
|
|
|
|
|
} |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
sub setContentLength { |
89
|
1
|
|
|
1
|
1
|
424
|
my $self = shift; |
90
|
1
|
|
|
|
|
3
|
my $len = shift; |
91
|
|
|
|
|
|
|
|
92
|
1
|
|
|
|
|
6
|
$self->getResponse()->setContentLength($len); |
93
|
|
|
|
|
|
|
} |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
sub setContentType { |
96
|
1
|
|
|
1
|
1
|
562
|
my $self = shift; |
97
|
1
|
|
|
|
|
3
|
my $type = shift; |
98
|
|
|
|
|
|
|
|
99
|
1
|
|
|
|
|
5
|
$self->getResponse()->setContentType($type); |
100
|
|
|
|
|
|
|
} |
101
|
|
|
|
|
|
|
|
102
|
|
|
|
|
|
|
sub setLocale { |
103
|
1
|
|
|
1
|
1
|
421
|
my $self = shift; |
104
|
1
|
|
|
|
|
2
|
my $loc = shift; |
105
|
|
|
|
|
|
|
|
106
|
1
|
|
|
|
|
3
|
$self->getResponse()->setLocale($loc); |
107
|
|
|
|
|
|
|
} |
108
|
|
|
|
|
|
|
|
109
|
|
|
|
|
|
|
sub setResponse { |
110
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
111
|
0
|
|
|
|
|
|
my $response = shift; |
112
|
|
|
|
|
|
|
|
113
|
0
|
|
|
|
|
|
$self->{response} = $response; |
114
|
|
|
|
|
|
|
|
115
|
0
|
|
|
|
|
|
return 1; |
116
|
|
|
|
|
|
|
} |
117
|
|
|
|
|
|
|
|
118
|
|
|
|
|
|
|
1; |
119
|
|
|
|
|
|
|
__END__ |