public class Dispatcher extends Object implements RequestDispatcher
| Modifier and Type | Field and Description |
|---|---|
static String |
__FORWARD_PREFIX
Dispatch include attribute names
|
static String |
__INCLUDE_PREFIX
Dispatch include attribute names
|
ERROR_EXCEPTION, ERROR_EXCEPTION_TYPE, ERROR_MESSAGE, ERROR_REQUEST_URI, ERROR_SERVLET_NAME, ERROR_STATUS_CODE, FORWARD_CONTEXT_PATH, FORWARD_PATH_INFO, FORWARD_QUERY_STRING, FORWARD_REQUEST_URI, FORWARD_SERVLET_PATH, INCLUDE_CONTEXT_PATH, INCLUDE_PATH_INFO, INCLUDE_QUERY_STRING, INCLUDE_REQUEST_URI, INCLUDE_SERVLET_PATH| Constructor and Description |
|---|
Dispatcher(ContextHandler contextHandler,
HttpURI uri,
String pathInContext) |
Dispatcher(ContextHandler contextHandler,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
error(ServletRequest request,
ServletResponse response) |
void |
forward(ServletRequest request,
ServletResponse response) |
protected void |
forward(ServletRequest request,
ServletResponse response,
DispatcherType dispatch) |
void |
include(ServletRequest request,
ServletResponse response) |
void |
push(ServletRequest request)
Deprecated.
Use
Request.getPushBuilder() instead |
String |
toString() |
public static final String __INCLUDE_PREFIX
public static final String __FORWARD_PREFIX
public Dispatcher(ContextHandler contextHandler, HttpURI uri, String pathInContext)
public Dispatcher(ContextHandler contextHandler, String name) throws IllegalStateException
IllegalStateExceptionpublic void forward(ServletRequest request, ServletResponse response) throws ServletException, IOException
forward in interface RequestDispatcherServletExceptionIOExceptionpublic void error(ServletRequest request, ServletResponse response) throws ServletException, IOException
ServletExceptionIOExceptionpublic void include(ServletRequest request, ServletResponse response) throws ServletException, IOException
include in interface RequestDispatcherServletExceptionIOExceptionprotected void forward(ServletRequest request, ServletResponse response, DispatcherType dispatch) throws ServletException, IOException
ServletExceptionIOException@Deprecated public void push(ServletRequest request)
Request.getPushBuilder() insteadPushes a secondary resource identified by this dispatcher.
request - the primary requestCopyright © 1995–2017 Webtide. All rights reserved.