org.apache.cactus.server
class RequestDispatcherWrapper

java.lang.Object
  |
  +--org.apache.cactus.server.RequestDispatcherWrapper
All Implemented Interfaces:
RequestDispatcher
Known Advisors:
LogAspect

public class RequestDispatcherWrapper
extends java.lang.Object
implements 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 2002/04/14 10:15:03 vmassol Exp $
Author:
Vincent Massol

Constructor Summary
RequestDispatcherWrapper(RequestDispatcher theOriginalDispatcher)
           
 
Method Summary
 void forward(ServletRequest theRequest, 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 !).
          Affected by: LogAspect
 void include(ServletRequest theRequest, 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 !).
          Affected by: LogAspect
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RequestDispatcherWrapper

public RequestDispatcherWrapper(RequestDispatcher theOriginalDispatcher)
Parameters:
theOriginalDispatcher - the original request dispatcher object
Method Detail

forward

public void forward(ServletRequest theRequest,
                    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 RequestDispatcher
Parameters:
theRequest - the simulation HTTP request
theResponse - the original HTTP response
Throws:
IOException - IOException RequestDispatcher
ServletException - ServletException RequestDispatcher
Affected by:
around() in LogAspect.

include

public void include(ServletRequest theRequest,
                    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 RequestDispatcher
Parameters:
theRequest - the simulation HTTP request
theResponse - the original HTTP response
Throws:
IOException - IOException RequestDispatcher
ServletException - ServletException RequestDispatcher
Affected by:
around() in LogAspect.


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.