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