org.apache.cactus.server
Class RequestDispatcherWrapper
java.lang.Object
org.apache.cactus.server.RequestDispatcherWrapper
- All Implemented Interfaces:
- javax.servlet.RequestDispatcher
- public class RequestDispatcherWrapper
- extends java.lang.Object
- implements javax.servlet.RequestDispatcher
Wrapper around RequestDispatcher which overrides the
forward() and include methods to use the original
HTTP request object instead of the simulated one used by Cactus.
- Version:
- $Id: RequestDispatcherWrapper.java,v 1.2 2003/07/14 08:17:25 vmassol Exp $
- Author:
- Vincent Massol
|
Method Summary |
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 !). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RequestDispatcherWrapper
public RequestDispatcherWrapper(javax.servlet.RequestDispatcher theOriginalDispatcher)
- Parameters:
theOriginalDispatcher - the original request dispatcher object
forward
public void forward(javax.servlet.ServletRequest theRequest,
javax.servlet.ServletResponse theResponse)
throws java.io.IOException,
javax.servlet.ServletException
- Call the original
RequestDispatcher forward()
method but with the original HTTP request (not the simulation one which
would make the servlet engine choke !).
- Specified by:
forward in interface javax.servlet.RequestDispatcher
- Parameters:
theRequest - the simulation HTTP requesttheResponse - the original HTTP response
- Throws:
java.io.IOException - RequestDispatcher.forward(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
javax.servlet.ServletException - RequestDispatcher.forward(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
include
public void include(javax.servlet.ServletRequest theRequest,
javax.servlet.ServletResponse theResponse)
throws java.io.IOException,
javax.servlet.ServletException
- Call the original
RequestDispatcher include()
method but with the original HTTP request (not the simulation one which
would make the servlet engine choke !).
- Specified by:
include in interface javax.servlet.RequestDispatcher
- Parameters:
theRequest - the simulation HTTP requesttheResponse - the original HTTP response
- Throws:
java.io.IOException - RequestDispatcher.forward(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
javax.servlet.ServletException - RequestDispatcher.forward(javax.servlet.ServletRequest, javax.servlet.ServletResponse)
Copyright © 2000-2003 Apache Software Foundation. All Rights Reserved.