public class RequestDispatcher extends Object implements RequestDispatcher, FilterChain
| Constructor and Description |
|---|
RequestDispatcher(WebAppConfiguration webAppConfig,
ServletConfiguration servletConfig)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
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(String servletPath,
String pathInfo,
String queryString,
int statusCode,
String summaryMessage,
Throwable exception,
String errorHandlerURI,
Mapping[] errorFilterPatterns) |
void |
setForInitialDispatcher(String servletPath,
String pathInfo,
String queryString,
String requestURIInsideWebapp,
Mapping[] requestFilterPatterns,
AuthenticationHandler authHandler) |
void |
setForNamedDispatcher(Mapping[] forwardFilterPatterns,
Mapping[] includeFilterPatterns) |
void |
setForURLDispatcher(String servletPath,
String pathInfo,
String queryString,
String requestURIInsideWebapp,
Mapping[] forwardFilterPatterns,
Mapping[] includeFilterPatterns) |
public RequestDispatcher(WebAppConfiguration webAppConfig, ServletConfiguration servletConfig)
public void setForNamedDispatcher(Mapping[] forwardFilterPatterns, Mapping[] includeFilterPatterns)
public void setForURLDispatcher(String servletPath, String pathInfo, String queryString, String requestURIInsideWebapp, Mapping[] forwardFilterPatterns, Mapping[] includeFilterPatterns)
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 String getName()
public void include(ServletRequest request, ServletResponse response) throws ServletException, IOException
include in interface RequestDispatcherServletExceptionIOExceptionpublic void forward(ServletRequest request, ServletResponse response) throws ServletException, IOException
forward in interface RequestDispatcherServletExceptionIOExceptionpublic void doFilter(ServletRequest request, ServletResponse response) throws ServletException, IOException
doFilter in interface FilterChainServletExceptionIOExceptionprotected WinstoneRequest getUnwrappedRequest(ServletRequest request)
protected WinstoneResponse getUnwrappedResponse(ServletResponse response)
Copyright © 2014. All rights reserved.