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