public class Dispatcher extends Object implements RequestDispatcher
| Modifier and Type | Field and Description |
|---|---|
static String |
__FORWARD_CONTEXT_PATH |
static String |
__FORWARD_JETTY
Dispatch include attribute names
|
static String |
__FORWARD_PATH_INFO |
static String |
__FORWARD_PREFIX |
static String |
__FORWARD_QUERY_STRING |
static String |
__FORWARD_REQUEST_URI |
static String |
__FORWARD_SERVLET_PATH |
static String |
__INCLUDE_CONTEXT_PATH |
static String |
__INCLUDE_JETTY
Dispatch include attribute names
|
static String |
__INCLUDE_PATH_INFO |
static String |
__INCLUDE_PREFIX |
static String |
__INCLUDE_QUERY_STRING |
static String |
__INCLUDE_REQUEST_URI |
static String |
__INCLUDE_SERVLET_PATH |
static String |
__JSP_FILE
JSP attributes
|
| 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,
int dispatch) |
void |
include(ServletRequest request,
ServletResponse response) |
static int |
type(String type)
Dispatch type from name
|
public static final String __INCLUDE_JETTY
public static final String __INCLUDE_PREFIX
public static final String __INCLUDE_REQUEST_URI
public static final String __INCLUDE_CONTEXT_PATH
public static final String __INCLUDE_SERVLET_PATH
public static final String __INCLUDE_PATH_INFO
public static final String __INCLUDE_QUERY_STRING
public static final String __FORWARD_JETTY
public static final String __FORWARD_PREFIX
public static final String __FORWARD_REQUEST_URI
public static final String __FORWARD_CONTEXT_PATH
public static final String __FORWARD_SERVLET_PATH
public static final String __FORWARD_PATH_INFO
public static final String __FORWARD_QUERY_STRING
public static final String __JSP_FILE
public Dispatcher(ContextHandler contextHandler, String uri, String pathInContext, String query)
contextHandler - uriInContext - pathInContext - query - public Dispatcher(ContextHandler contextHandler, String name) throws IllegalStateException
servletHandler - name - IllegalStateExceptionpublic static int type(String type)
public 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, int dispatch) throws ServletException, IOException
ServletExceptionIOExceptionCopyright © 2009 Mortbay Consulting Pty. Ltd. All Rights Reserved.