org.apache.beehive.netui.pageflow.scoping.internal
Class ScopedRequestDispatcher

Object
  extended by ScopedRequestDispatcher
All Implemented Interfaces:
RequestDispatcher

public class ScopedRequestDispatcher
extends Object
implements RequestDispatcher

A request dispatcher that doesn't actually forward (but keeps track of the attempted forward), and which does some extra work to do server includes into our ScopedRequest and ScopedResponse.

See Also:
ScopedRequestImpl, ScopedResponseImpl

Constructor Summary
ScopedRequestDispatcher(String uri)
          Constructor.
 
Method Summary
 void forward(ServletRequest request, ServletResponse response)
          Does not actually cause a server forward of the request, but informs the ScopedRequest object that a forward was attempted for a particular URI.
 void include(ServletRequest request, ServletResponse response)
          Does a server include of the stored URI into the given ScopedRequest and ScopedResponse.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScopedRequestDispatcher

public ScopedRequestDispatcher(String uri)
Constructor.

Parameters:
uri - the URI to which we'll "forward" or include.
Method Detail

forward

public void forward(ServletRequest request,
                    ServletResponse response)
             throws ServletException,
                    IOException
Does not actually cause a server forward of the request, but informs the ScopedRequest object that a forward was attempted for a particular URI.

Specified by:
forward in interface RequestDispatcher
Parameters:
request - the ScopedRequest, or a wrapper (ServletRequestWrapper) around it.
response - the ScopedResponse, or a wrapper (ServletResponseWrapper) around it.
Throws:
ServletException
IOException

include

public void include(ServletRequest request,
                    ServletResponse response)
             throws ServletException,
                    IOException
Does a server include of the stored URI into the given ScopedRequest and ScopedResponse.

Specified by:
include in interface RequestDispatcher
Parameters:
request - the ScopedRequest, or a wrapper (ServletRequestWrapper) around it.
response - the ScopedResponse, or a wrapper (ServletResponseWrapper) around it.
Throws:
ServletException
IOException