Servlet::Http::HttpServletRequestWrapper - HTTP servlet request wrapper class
my $wrapper = Servlet::Http::HttpServletRequestWrapper->new($request);
my $req = $wrapper->getRequest();
$wrapper->setRequest($req);
Provides a convenient implementation of the HttpServletRequest interface that
may be subclassed by developers wishing to adapt the request to a Servlet.
This class implements the Wrapper or Decorator pattern. Methods default to
calling through to the wrapped request object.
- new($request)
- Construct an instance with the given request object
Parameters:
- $request
- the Servlet::Http::HttpServletRequest to be wrapped
- getRequest()
- Returns the wrapped Servlet::Http::HttpServletRequest
- setRequest($request)
- Specify a new request object to be wrapped.
Parameters:
- $request
- the Servlet::Http::HttpServletRequest to be wrapped
Servlet::Http::HttpServletRequest, Servlet::ServletRequestWrapper
Brian Moseley, bcm@maz.org