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
|
static String |
__JSP_FILE
JSP attributes
|
static String |
ERROR_EXCEPTION |
static String |
ERROR_EXCEPTION_TYPE |
static String |
ERROR_MESSAGE |
static String |
ERROR_REQUEST_URI |
static String |
ERROR_SERVLET_NAME |
static String |
ERROR_STATUS_CODE |
static String |
FORWARD_CONTEXT_PATH |
static String |
FORWARD_PATH_INFO |
static String |
FORWARD_QUERY_STRING |
static String |
FORWARD_REQUEST_URI |
static String |
FORWARD_SERVLET_PATH |
static String |
INCLUDE_CONTEXT_PATH |
static String |
INCLUDE_PATH_INFO |
static String |
INCLUDE_QUERY_STRING |
static String |
INCLUDE_REQUEST_URI |
static String |
INCLUDE_SERVLET_PATH |
Constructor and Description |
---|
Dispatcher(ContextHandler contextHandler,
String name)
Constructor.
|
Dispatcher(ContextHandler contextHandler,
String uri,
String pathInContext,
String query) |
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) |
public static final String FORWARD_REQUEST_URI
public static final String FORWARD_CONTEXT_PATH
public static final String FORWARD_PATH_INFO
public static final String FORWARD_SERVLET_PATH
public static final String FORWARD_QUERY_STRING
public static final String INCLUDE_REQUEST_URI
public static final String INCLUDE_CONTEXT_PATH
public static final String INCLUDE_PATH_INFO
public static final String INCLUDE_SERVLET_PATH
public static final String INCLUDE_QUERY_STRING
public static final String ERROR_EXCEPTION
public static final String ERROR_EXCEPTION_TYPE
public static final String ERROR_MESSAGE
public static final String ERROR_REQUEST_URI
public static final String ERROR_SERVLET_NAME
public static final String ERROR_STATUS_CODE
public static final String __INCLUDE_PREFIX
public static final String __FORWARD_PREFIX
public static final String __JSP_FILE
public Dispatcher(ContextHandler contextHandler, String uri, String pathInContext, String query)
contextHandler
- uri
- pathInContext
- query
- public Dispatcher(ContextHandler contextHandler, String name) throws IllegalStateException
contextHandler
- name
- IllegalStateException
public void forward(ServletRequest request, ServletResponse response) throws ServletException, IOException
forward
in interface RequestDispatcher
ServletException
IOException
public void error(ServletRequest request, ServletResponse response) throws ServletException, IOException
ServletException
IOException
public void include(ServletRequest request, ServletResponse response) throws ServletException, IOException
include
in interface RequestDispatcher
ServletException
IOException
protected void forward(ServletRequest request, ServletResponse response, DispatcherType dispatch) throws ServletException, IOException
ServletException
IOException
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.