- All Known Implementing Classes:
DefaultServletRequestDispatcher
public interface RequestDispatcher
The RequestDispatcher API.
- Author:
- Manfred Riem ([email protected])
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Defines the ERROR_EXCEPTION constant.static final String
Defines the ERROR_EXCEPTION_TYPE constant.static final String
Defines the ERROR_MESSAGE constant.static final String
Defines the ERROR_REQUEST_URI constant.static final String
Defines the ERROR_SERVLET_NAME constant.static final String
Defines the ERROR_STATUS_CODE constant.static final String
Defines the FORWARD_CONTEXT_PATH constant.static final String
Defines the FORWARD_MAPPING constant.static final String
Defines the FORWARD_PATH_INFO constant.static final String
Defines the FORWARD_QUERY_STRING constant.static final String
Defines the FORWARD_REQUEST_URI constant.static final String
Defines the FORWARD_SERVLET_PATH constant.static final String
Defines the INCLUDE_CONTEXT_PATH constant.static final String
Defines the INCLUDE_MAPPING constant.static final String
Defines the INCLUDE_PATH_INFO constant.static final String
Defines the INCLUDE_QUERY_STRING constant.static final String
Defines the INCLUDE_REQUEST_URI constant.static final String
Defines the INCLUDE_SERVLET_PATH constant. -
Method Summary
Modifier and TypeMethodDescriptionvoid
forward
(ServletRequest request, ServletResponse response) Forward the request.void
include
(ServletRequest request, ServletResponse response) Include into the request.
-
Field Details
-
ERROR_EXCEPTION
Defines the ERROR_EXCEPTION constant.- See Also:
-
ERROR_EXCEPTION_TYPE
Defines the ERROR_EXCEPTION_TYPE constant.- See Also:
-
ERROR_MESSAGE
Defines the ERROR_MESSAGE constant.- See Also:
-
ERROR_REQUEST_URI
Defines the ERROR_REQUEST_URI constant.- See Also:
-
ERROR_SERVLET_NAME
Defines the ERROR_SERVLET_NAME constant.- See Also:
-
ERROR_STATUS_CODE
Defines the ERROR_STATUS_CODE constant.- See Also:
-
FORWARD_CONTEXT_PATH
Defines the FORWARD_CONTEXT_PATH constant.- See Also:
-
FORWARD_MAPPING
Defines the FORWARD_MAPPING constant.- See Also:
-
FORWARD_PATH_INFO
Defines the FORWARD_PATH_INFO constant.- See Also:
-
FORWARD_QUERY_STRING
Defines the FORWARD_QUERY_STRING constant.- See Also:
-
FORWARD_REQUEST_URI
Defines the FORWARD_REQUEST_URI constant.- See Also:
-
FORWARD_SERVLET_PATH
Defines the FORWARD_SERVLET_PATH constant.- See Also:
-
INCLUDE_CONTEXT_PATH
Defines the INCLUDE_CONTEXT_PATH constant.- See Also:
-
INCLUDE_MAPPING
Defines the INCLUDE_MAPPING constant.- See Also:
-
INCLUDE_PATH_INFO
Defines the INCLUDE_PATH_INFO constant.- See Also:
-
INCLUDE_QUERY_STRING
Defines the INCLUDE_QUERY_STRING constant.- See Also:
-
INCLUDE_REQUEST_URI
Defines the INCLUDE_REQUEST_URI constant.- See Also:
-
INCLUDE_SERVLET_PATH
Defines the INCLUDE_SERVLET_PATH constant.- See Also:
-
-
Method Details
-
forward
Forward the request.- Parameters:
request
- the request.response
- the response- Throws:
IOException
- when an I/O error occurs.ServletException
- when a servlet error occurs.
-
include
Include into the request.- Parameters:
request
- the request.response
- the response.- Throws:
IOException
- when an I/O error occurs.ServletException
- when a servlet error occurs.
-