public class RequestDispatcherWrapper
extends java.lang.Object
implements javax.servlet.RequestDispatcher
RequestDispatcher
which overrides the
forward()
and include
methods to use the original
HTTP request object instead of the simulated one used by Cactus.Constructor and Description |
---|
RequestDispatcherWrapper(javax.servlet.RequestDispatcher theOriginalDispatcher) |
Modifier and Type | Method and Description |
---|---|
void |
forward(javax.servlet.ServletRequest theRequest,
javax.servlet.ServletResponse theResponse)
Call the original
RequestDispatcher forward()
method but with the original HTTP request (not the simulation one which
would make the servlet engine choke !). |
void |
include(javax.servlet.ServletRequest theRequest,
javax.servlet.ServletResponse theResponse)
Call the original
RequestDispatcher include()
method but with the original HTTP request (not the simulation one which
would make the servlet engine choke !). |
public RequestDispatcherWrapper(javax.servlet.RequestDispatcher theOriginalDispatcher)
theOriginalDispatcher
- the original request dispatcher objectpublic void forward(javax.servlet.ServletRequest theRequest, javax.servlet.ServletResponse theResponse) throws java.io.IOException, javax.servlet.ServletException
RequestDispatcher
forward()
method but with the original HTTP request (not the simulation one which
would make the servlet engine choke !).forward
in interface javax.servlet.RequestDispatcher
theRequest
- the simulation HTTP requesttheResponse
- the original HTTP responsejava.io.IOException
- RequestDispatcher.forward(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
javax.servlet.ServletException
- RequestDispatcher.forward(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
public void include(javax.servlet.ServletRequest theRequest, javax.servlet.ServletResponse theResponse) throws java.io.IOException, javax.servlet.ServletException
RequestDispatcher
include()
method but with the original HTTP request (not the simulation one which
would make the servlet engine choke !).include
in interface javax.servlet.RequestDispatcher
theRequest
- the simulation HTTP requesttheResponse
- the original HTTP responsejava.io.IOException
- RequestDispatcher.forward(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
javax.servlet.ServletException
- RequestDispatcher.forward(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
Copyright © 2000-2004 Apache Software Foundation. All Rights Reserved.