Package org.eclipse.jetty.server
Class Dispatcher
- java.lang.Object
-
- org.eclipse.jetty.server.Dispatcher
-
- All Implemented Interfaces:
RequestDispatcher
public class Dispatcher extends Object implements RequestDispatcher
-
-
Field Summary
Fields Modifier and Type Field Description static String__ERROR_DISPATCHstatic String__FORWARD_PREFIXDispatch include attribute namesstatic String__INCLUDE_PREFIXDispatch include attribute names-
Fields inherited from interface javax.servlet.RequestDispatcher
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 Summary
Constructors Constructor Description Dispatcher(ContextHandler contextHandler, String name)Dispatcher(ContextHandler contextHandler, org.eclipse.jetty.http.HttpURI uri, String pathInContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiderror(ServletRequest request, ServletResponse response)voidforward(ServletRequest request, ServletResponse response)protected voidforward(ServletRequest request, ServletResponse response, DispatcherType dispatch)voidinclude(ServletRequest request, ServletResponse response)StringtoString()
-
-
-
Field Detail
-
__ERROR_DISPATCH
public static final String __ERROR_DISPATCH
- See Also:
- Constant Field Values
-
__INCLUDE_PREFIX
public static final String __INCLUDE_PREFIX
Dispatch include attribute names- See Also:
- Constant Field Values
-
__FORWARD_PREFIX
public static final String __FORWARD_PREFIX
Dispatch include attribute names- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Dispatcher
public Dispatcher(ContextHandler contextHandler, org.eclipse.jetty.http.HttpURI uri, String pathInContext)
-
Dispatcher
public Dispatcher(ContextHandler contextHandler, String name) throws IllegalStateException
- Throws:
IllegalStateException
-
-
Method Detail
-
forward
public void forward(ServletRequest request, ServletResponse response) throws ServletException, IOException
- Specified by:
forwardin interfaceRequestDispatcher- Throws:
ServletExceptionIOException
-
error
public void error(ServletRequest request, ServletResponse response) throws ServletException, IOException
- Throws:
ServletExceptionIOException
-
include
public void include(ServletRequest request, ServletResponse response) throws ServletException, IOException
- Specified by:
includein interfaceRequestDispatcher- Throws:
ServletExceptionIOException
-
forward
protected void forward(ServletRequest request, ServletResponse response, DispatcherType dispatch) throws ServletException, IOException
- Throws:
ServletExceptionIOException
-
-