NAME

Servlet::Http::HttpServletResponseWrapper - HTTP servlet response wrapper class


SYNOPSIS

  my $wrapper = Servlet::Http::HttpServletResponseWrapper->new($response);
  my $reqs= $wrapper->getResponse();
  $wrapper->setResponse($res);


DESCRIPTION

Provides a convenient implementation of the HttpServletResponse 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.


CONSTRUCTOR

new($response)
Construct an instance with the given response object

Parameters:

$response
the Servlet::Http::HttpServletResponse to be wrapped


METHODS

getResponse()
Returns the wrapped Servlet::Http::HttpServletResponse

setResponse($response)
Specify a new response object to be wrapped.

Parameters:

$response
the Servlet::Http::HttpServletResponse to be wrapped


SEE ALSO

the Servlet::Http::HttpServletResponse manpage, the Servlet::ServletResponseWrapper manpage


AUTHOR

Brian Moseley, bcm@maz.org