|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwinstone.RequestDispatcher
public class RequestDispatcher
This class implements both the RequestDispatcher and FilterChain components. On the first call to include() or forward(), it starts the filter chain execution if one exists. On the final doFilter() or if there is no chain, we call the include() or forward() again, and the servlet is executed.
Constructor Summary | |
---|---|
RequestDispatcher(WebAppConfiguration webAppConfig,
ServletConfiguration servletConfig)
Constructor. |
Method Summary | |
---|---|
void |
doFilter(ServletRequest request,
ServletResponse response)
Handles the processing of the chain of filters, so that we process them all, then pass on to the main servlet |
void |
forward(ServletRequest request,
ServletResponse response)
Forwards to another servlet, and when it's finished executing that other servlet, cut off execution. |
java.lang.String |
getName()
|
protected WinstoneRequest |
getUnwrappedRequest(ServletRequest request)
Unwrap back to the original container allocated request object |
protected WinstoneResponse |
getUnwrappedResponse(ServletResponse response)
Unwrap back to the original container allocated response object |
void |
include(ServletRequest request,
ServletResponse response)
Includes the execution of a servlet into the current request Note this method enters itself twice: once with the initial call, and once again when all the filters have completed. |
void |
setForErrorDispatcher(java.lang.String servletPath,
java.lang.String pathInfo,
java.lang.String queryString,
int statusCode,
java.lang.String summaryMessage,
java.lang.Throwable exception,
java.lang.String errorHandlerURI,
Mapping[] errorFilterPatterns)
|
void |
setForInitialDispatcher(java.lang.String servletPath,
java.lang.String pathInfo,
java.lang.String queryString,
java.lang.String requestURIInsideWebapp,
Mapping[] requestFilterPatterns,
AuthenticationHandler authHandler)
|
void |
setForNamedDispatcher(Mapping[] forwardFilterPatterns,
Mapping[] includeFilterPatterns)
|
void |
setForURLDispatcher(java.lang.String servletPath,
java.lang.String pathInfo,
java.lang.String queryString,
java.lang.String requestURIInsideWebapp,
Mapping[] forwardFilterPatterns,
Mapping[] includeFilterPatterns)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestDispatcher(WebAppConfiguration webAppConfig, ServletConfiguration servletConfig)
Method Detail |
---|
public void setForNamedDispatcher(Mapping[] forwardFilterPatterns, Mapping[] includeFilterPatterns)
public void setForURLDispatcher(java.lang.String servletPath, java.lang.String pathInfo, java.lang.String queryString, java.lang.String requestURIInsideWebapp, Mapping[] forwardFilterPatterns, Mapping[] includeFilterPatterns)
public void setForErrorDispatcher(java.lang.String servletPath, java.lang.String pathInfo, java.lang.String queryString, int statusCode, java.lang.String summaryMessage, java.lang.Throwable exception, java.lang.String errorHandlerURI, Mapping[] errorFilterPatterns)
public void setForInitialDispatcher(java.lang.String servletPath, java.lang.String pathInfo, java.lang.String queryString, java.lang.String requestURIInsideWebapp, Mapping[] requestFilterPatterns, AuthenticationHandler authHandler)
public java.lang.String getName()
public void include(ServletRequest request, ServletResponse response) throws ServletException, java.io.IOException
include
in interface RequestDispatcher
ServletException
java.io.IOException
public void forward(ServletRequest request, ServletResponse response) throws ServletException, java.io.IOException
forward
in interface RequestDispatcher
ServletException
java.io.IOException
public void doFilter(ServletRequest request, ServletResponse response) throws ServletException, java.io.IOException
doFilter
in interface FilterChain
ServletException
java.io.IOException
protected WinstoneRequest getUnwrappedRequest(ServletRequest request)
protected WinstoneResponse getUnwrappedResponse(ServletResponse response)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |