- All Known Implementing Classes:
DefaultServletRequestDispatcher
public interface RequestDispatcher
The RequestDispatcher API.
- Author:
- Manfred Riem ([email protected])
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ERROR_EXCEPTION
Defines the ERROR_EXCEPTION constant.static java.lang.String
ERROR_EXCEPTION_TYPE
Defines the ERROR_EXCEPTION_TYPE constant.static java.lang.String
ERROR_MESSAGE
Defines the ERROR_MESSAGE constant.static java.lang.String
ERROR_REQUEST_URI
Defines the ERROR_REQUEST_URI constant.static java.lang.String
ERROR_SERVLET_NAME
Defines the ERROR_SERVLET_NAME constant.static java.lang.String
ERROR_STATUS_CODE
Defines the ERROR_STATUS_CODE constant.static java.lang.String
FORWARD_CONTEXT_PATH
Defines the FORWARD_CONTEXT_PATH constant.static java.lang.String
FORWARD_MAPPING
Defines the FORWARD_MAPPING constant.static java.lang.String
FORWARD_PATH_INFO
Defines the FORWARD_PATH_INFO constant.static java.lang.String
FORWARD_QUERY_STRING
Defines the FORWARD_QUERY_STRING constant.static java.lang.String
FORWARD_REQUEST_URI
Defines the FORWARD_REQUEST_URI constant.static java.lang.String
FORWARD_SERVLET_PATH
Defines the FORWARD_SERVLET_PATH constant.static java.lang.String
INCLUDE_CONTEXT_PATH
Defines the INCLUDE_CONTEXT_PATH constant.static java.lang.String
INCLUDE_MAPPING
Defines the INCLUDE_MAPPING constant.static java.lang.String
INCLUDE_PATH_INFO
Defines the INCLUDE_PATH_INFO constant.static java.lang.String
INCLUDE_QUERY_STRING
Defines the INCLUDE_QUERY_STRING constant.static java.lang.String
INCLUDE_REQUEST_URI
Defines the INCLUDE_REQUEST_URI constant.static java.lang.String
INCLUDE_SERVLET_PATH
Defines the INCLUDE_SERVLET_PATH constant. -
Method Summary
Modifier and Type Method Description void
forward(ServletRequest request, ServletResponse response)
Forward the request.void
include(ServletRequest request, ServletResponse response)
Include into the request.
-
Field Details
-
ERROR_EXCEPTION
static final java.lang.String ERROR_EXCEPTIONDefines the ERROR_EXCEPTION constant.- See Also:
- Constant Field Values
-
ERROR_EXCEPTION_TYPE
static final java.lang.String ERROR_EXCEPTION_TYPEDefines the ERROR_EXCEPTION_TYPE constant.- See Also:
- Constant Field Values
-
ERROR_MESSAGE
static final java.lang.String ERROR_MESSAGEDefines the ERROR_MESSAGE constant.- See Also:
- Constant Field Values
-
ERROR_REQUEST_URI
static final java.lang.String ERROR_REQUEST_URIDefines the ERROR_REQUEST_URI constant.- See Also:
- Constant Field Values
-
ERROR_SERVLET_NAME
static final java.lang.String ERROR_SERVLET_NAMEDefines the ERROR_SERVLET_NAME constant.- See Also:
- Constant Field Values
-
ERROR_STATUS_CODE
static final java.lang.String ERROR_STATUS_CODEDefines the ERROR_STATUS_CODE constant.- See Also:
- Constant Field Values
-
FORWARD_CONTEXT_PATH
static final java.lang.String FORWARD_CONTEXT_PATHDefines the FORWARD_CONTEXT_PATH constant.- See Also:
- Constant Field Values
-
FORWARD_MAPPING
static final java.lang.String FORWARD_MAPPINGDefines the FORWARD_MAPPING constant.- See Also:
- Constant Field Values
-
FORWARD_PATH_INFO
static final java.lang.String FORWARD_PATH_INFODefines the FORWARD_PATH_INFO constant.- See Also:
- Constant Field Values
-
FORWARD_QUERY_STRING
static final java.lang.String FORWARD_QUERY_STRINGDefines the FORWARD_QUERY_STRING constant.- See Also:
- Constant Field Values
-
FORWARD_REQUEST_URI
static final java.lang.String FORWARD_REQUEST_URIDefines the FORWARD_REQUEST_URI constant.- See Also:
- Constant Field Values
-
FORWARD_SERVLET_PATH
static final java.lang.String FORWARD_SERVLET_PATHDefines the FORWARD_SERVLET_PATH constant.- See Also:
- Constant Field Values
-
INCLUDE_CONTEXT_PATH
static final java.lang.String INCLUDE_CONTEXT_PATHDefines the INCLUDE_CONTEXT_PATH constant.- See Also:
- Constant Field Values
-
INCLUDE_MAPPING
static final java.lang.String INCLUDE_MAPPINGDefines the INCLUDE_MAPPING constant.- See Also:
- Constant Field Values
-
INCLUDE_PATH_INFO
static final java.lang.String INCLUDE_PATH_INFODefines the INCLUDE_PATH_INFO constant.- See Also:
- Constant Field Values
-
INCLUDE_QUERY_STRING
static final java.lang.String INCLUDE_QUERY_STRINGDefines the INCLUDE_QUERY_STRING constant.- See Also:
- Constant Field Values
-
INCLUDE_REQUEST_URI
static final java.lang.String INCLUDE_REQUEST_URIDefines the INCLUDE_REQUEST_URI constant.- See Also:
- Constant Field Values
-
INCLUDE_SERVLET_PATH
static final java.lang.String INCLUDE_SERVLET_PATHDefines the INCLUDE_SERVLET_PATH constant.- See Also:
- Constant Field Values
-
-
Method Details
-
forward
void forward(ServletRequest request, ServletResponse response) throws java.io.IOException, ServletExceptionForward the request.- Parameters:
request
- the request.response
- the response- Throws:
java.io.IOException
- when an I/O error occurs.ServletException
- when a servlet error occurs.
-
include
void include(ServletRequest request, ServletResponse response) throws java.io.IOException, ServletExceptionInclude into the request.- Parameters:
request
- the request.response
- the response.- Throws:
java.io.IOException
- when an I/O error occurs.ServletException
- when a servlet error occurs.
-