Servlet::Http::HttpServletResponseWrapper - HTTP servlet response wrapper class
my $wrapper = Servlet::Http::HttpServletResponseWrapper->new($response); my $reqs= $wrapper->getResponse(); $wrapper->setResponse($res);
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.
Construct an instance with the given response object
Parameters:
the Servlet::Http::HttpServletResponse to be wrapped
Returns the wrapped Servlet::Http::HttpServletResponse
Specify a new response object to be wrapped.
Servlet::Http::HttpServletResponse, Servlet::ServletResponseWrapper
Brian Moseley, bcm@maz.org
To install Servlet, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Servlet
CPAN shell
perl -MCPAN -e shell install Servlet
For more information on module installation, please visit the detailed CPAN module installation guide.