public class Dispatcher extends Object implements javax.servlet.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
|
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,
String name)
Constructor.
|
Dispatcher(ContextHandler contextHandler,
String uri,
String pathInContext,
String query) |
Modifier and Type | Method and Description |
---|---|
void |
error(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response) |
void |
forward(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response) |
protected void |
forward(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.DispatcherType dispatch) |
void |
include(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response) |
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(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) throws javax.servlet.ServletException, IOException
forward
in interface javax.servlet.RequestDispatcher
javax.servlet.ServletException
IOException
public void error(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
public void include(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response) throws javax.servlet.ServletException, IOException
include
in interface javax.servlet.RequestDispatcher
javax.servlet.ServletException
IOException
protected void forward(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.DispatcherType dispatch) throws javax.servlet.ServletException, IOException
javax.servlet.ServletException
IOException
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.