org.mortbay.jetty.servlet
Class Dispatcher
java.lang.Object
org.mortbay.jetty.servlet.Dispatcher
- All Implemented Interfaces:
- RequestDispatcher
public class Dispatcher
- extends Object
- implements RequestDispatcher
Servlet RequestDispatcher.
- Author:
- Greg Wilkins (gregw)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
__INCLUDE_REQUEST_URI
public static final String __INCLUDE_REQUEST_URI
- Dispatch include attribute names
- See Also:
- Constant Field Values
__INCLUDE_CONTEXT_PATH
public static final String __INCLUDE_CONTEXT_PATH
- See Also:
- Constant Field Values
__INCLUDE_SERVLET_PATH
public static final String __INCLUDE_SERVLET_PATH
- See Also:
- Constant Field Values
__INCLUDE_PATH_INFO
public static final String __INCLUDE_PATH_INFO
- See Also:
- Constant Field Values
__INCLUDE_QUERY_STRING
public static final String __INCLUDE_QUERY_STRING
- See Also:
- Constant Field Values
__FORWARD_REQUEST_URI
public static final String __FORWARD_REQUEST_URI
- Dispatch include attribute names
- See Also:
- Constant Field Values
__FORWARD_CONTEXT_PATH
public static final String __FORWARD_CONTEXT_PATH
- See Also:
- Constant Field Values
__FORWARD_SERVLET_PATH
public static final String __FORWARD_SERVLET_PATH
- See Also:
- Constant Field Values
__FORWARD_PATH_INFO
public static final String __FORWARD_PATH_INFO
- See Also:
- Constant Field Values
__FORWARD_QUERY_STRING
public static final String __FORWARD_QUERY_STRING
- See Also:
- Constant Field Values
_contextHandler
private ContextHandler _contextHandler
_uri
private String _uri
_path
private String _path
_dQuery
private String _dQuery
_named
private String _named
Dispatcher
public Dispatcher(ContextHandler contextHandler,
String uri,
String pathInContext,
String query)
- Parameters:
contextHandler
- uriInContext
- pathInContext
- query
-
Dispatcher
public Dispatcher(ContextHandler contextHandler,
String name)
throws IllegalStateException
- Constructor.
- Parameters:
servletHandler
- name
-
- Throws:
IllegalStateException
type
public static int type(String type)
- Dispatch type from name
forward
public void forward(ServletRequest request,
ServletResponse response)
throws ServletException,
IOException
- Specified by:
forward
in interface RequestDispatcher
- Throws:
ServletException
IOException
error
public void error(ServletRequest request,
ServletResponse response)
throws ServletException,
IOException
- Throws:
ServletException
IOException
include
public void include(ServletRequest request,
ServletResponse response)
throws ServletException,
IOException
- Specified by:
include
in interface RequestDispatcher
- Throws:
ServletException
IOException
forward
protected void forward(ServletRequest request,
ServletResponse response,
int dispatch)
throws ServletException,
IOException
- Throws:
ServletException
IOException