| java.lang.Object winstone.RequestDispatcher
RequestDispatcher | public class RequestDispatcher implements javax.servlet.RequestDispatcher,javax.servlet.FilterChain(Code) | | 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.
author: Rick Knowles version: $Id: RequestDispatcher.java,v 1.18 2007/04/23 02:55:35 rickknowles Exp $ |
Method Summary | |
public void | doFilter(ServletRequest request, ServletResponse response) | public void | forward(ServletRequest request, ServletResponse response) Forwards to another servlet, and when it's finished executing that other
servlet, cut off execution. | public String | getName() | protected WinstoneRequest | getUnwrappedRequest(ServletRequest request) | protected WinstoneResponse | getUnwrappedResponse(ServletResponse response) | public 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. | public void | setForErrorDispatcher(String servletPath, String pathInfo, String queryString, int statusCode, String summaryMessage, Throwable exception, String errorHandlerURI, Mapping errorFilterPatterns) | public void | setForInitialDispatcher(String servletPath, String pathInfo, String queryString, String requestURIInsideWebapp, Mapping requestFilterPatterns, AuthenticationHandler authHandler) | public void | setForNamedDispatcher(Mapping forwardFilterPatterns, Mapping includeFilterPatterns) | public void | setForURLDispatcher(String servletPath, String pathInfo, String queryString, String requestURIInsideWebapp, Mapping forwardFilterPatterns, Mapping includeFilterPatterns) |
ERROR_EXCEPTION_TYPE | final static String ERROR_EXCEPTION_TYPE(Code) | | |
ERROR_REQUEST_URI | final static String ERROR_REQUEST_URI(Code) | | |
ERROR_SERVLET_NAME | final static String ERROR_SERVLET_NAME(Code) | | |
ERROR_STATUS_CODE | final static String ERROR_STATUS_CODE(Code) | | |
FORWARD_CONTEXT_PATH | final static String FORWARD_CONTEXT_PATH(Code) | | |
FORWARD_PATH_INFO | final static String FORWARD_PATH_INFO(Code) | | |
FORWARD_QUERY_STRING | final static String FORWARD_QUERY_STRING(Code) | | |
FORWARD_REQUEST_URI | final static String FORWARD_REQUEST_URI(Code) | | |
FORWARD_SERVLET_PATH | final static String FORWARD_SERVLET_PATH(Code) | | |
INCLUDE_CONTEXT_PATH | final static String INCLUDE_CONTEXT_PATH(Code) | | |
INCLUDE_PATH_INFO | final static String INCLUDE_PATH_INFO(Code) | | |
INCLUDE_QUERY_STRING | final static String INCLUDE_QUERY_STRING(Code) | | |
INCLUDE_REQUEST_URI | final static String INCLUDE_REQUEST_URI(Code) | | |
INCLUDE_SERVLET_PATH | final static String INCLUDE_SERVLET_PATH(Code) | | |
RequestDispatcher | public RequestDispatcher(WebAppConfiguration webAppConfig, ServletConfiguration servletConfig)(Code) | | Constructor. This initializes the filter chain and sets up the details
needed to handle a servlet excecution, such as security constraints,
filters, etc.
|
forward | public void forward(ServletRequest request, ServletResponse response) throws ServletException, IOException(Code) | | Forwards to another servlet, and when it's finished executing that other
servlet, cut off execution.
Note this method enters itself twice: once with the initial call, and once again
when all the filters have completed.
|
setForNamedDispatcher | public void setForNamedDispatcher(Mapping forwardFilterPatterns, Mapping includeFilterPatterns)(Code) | | |
|
|