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

java.lang.Object
  extended by org.apache.beehive.netui.pageflow.scoping.internal.ScopedRequestDispatcher
All Implemented Interfaces
javax.servlet.RequestDispatcher

public class ScopedRequestDispatcher
extends Object
implements javax.servlet.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(javax.servlet.ServletRequest request, javax.servlet.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(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
          Does a server include of the stored URI into the given ScopedRequest and ScopedResponse.
 
Methods inherited from class java.lang.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(javax.servlet.ServletRequest request,
                    javax.servlet.ServletResponse response)
             throws javax.servlet.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 javax.servlet.RequestDispatcher
Parameters
request - the ScopedRequest, or a wrapper (ServletRequestWrapper) around it.
response - the ScopedResponse, or a wrapper (ServletResponseWrapper) around it.
Throws
javax.servlet.ServletException
IOException

include

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

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


Copyright © 2011, Oracle. All rights reserved.