|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectScopedRequestDispatcher
public class ScopedRequestDispatcher
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.
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 |
---|
public ScopedRequestDispatcher(String uri)
uri
- the URI to which we'll "forward" or include.Method Detail |
---|
public void forward(ServletRequest request, ServletResponse response) throws ServletException, IOException
forward
in interface RequestDispatcher
request
- the ScopedRequest, or a wrapper (ServletRequestWrapper) around it.response
- the ScopedResponse, or a wrapper (ServletResponseWrapper) around it.
ServletException
IOException
public void include(ServletRequest request, ServletResponse response) throws ServletException, IOException
include
in interface RequestDispatcher
request
- the ScopedRequest, or a wrapper (ServletRequestWrapper) around it.response
- the ScopedResponse, or a wrapper (ServletResponseWrapper) around it.
ServletException
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |