Servlet::ServletResponseWrapper - servlet response wrapper class
my $wrapper = Servlet::ServletResponseWrapper->new($response);
my $res = $wrapper->getResponse();
$wrapper->setResponse($res);
Provides a convenient implementation of the ServletResponse interface that may
be subclassed by developers wishing to adapt the response to a Servlet. This
class implements the Wrapper or Decorator pattern. Methods default to calling
through to the wrapped response object.
- new($response)
- Construct an instance with the given response object
Parameters:
- $response
- the Servlet::ServletResponse to be wrapped
- getResponse()
- Returns the wrapped Servlet::ServletResponse
- setResponse($response)
- Specify a new response object to be wrapped.
Parameters:
- $response
- the Servlet::ServletResponse to be wrapped
Brian Moseley, bcm@maz.org