|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cactus.server.AbstractHttpServletRequestWrapper org.apache.cactus.server.HttpServletRequestWrapper
Encapsulation class for the Servlet 2.2 API HttpServletRequest
.
This is an implementation that delegates all the call to the
HttpServletRequest
object passed in the constructor except for
some overridden methods which are use to simulate a URL. This is to be able
to simulate any URL that would have been used to call the test method : if
this was not done, the URL that would be returned (by calling the
getRequestURI()
method or others alike) would be the URL of the
server redirector servlet or JSP and not a URL that the test case want to
simulate.
Field Summary |
Fields inherited from class org.apache.cactus.server.AbstractHttpServletRequestWrapper |
remoteHostName, remoteIPAddress, remoteUser, request, url |
Constructor Summary | |
HttpServletRequestWrapper(javax.servlet.http.HttpServletRequest theRequest,
ServletURL theURL)
Construct an HttpServletRequest instance that delegates
it's method calls to the request object passed as parameter and that
uses the URL passed as parameter to simulate a URL from which the request
would come from. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HttpServletRequestWrapper(javax.servlet.http.HttpServletRequest theRequest, ServletURL theURL)
HttpServletRequest
instance that delegates
it's method calls to the request object passed as parameter and that
uses the URL passed as parameter to simulate a URL from which the request
would come from.
theRequest
- the real HTTP requesttheURL
- the URL to simulate or null
if none
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |