Interface AsyncRequestDispatcher
- All Superinterfaces:
jakarta.servlet.RequestDispatcher
public interface AsyncRequestDispatcher
extends jakarta.servlet.RequestDispatcher
AsyncRequestDispatcher is a special RequestDispatcher used to execute includes asynchronously.
-
Field Summary
Fields inherited from interface jakarta.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
-
Method Summary
Modifier and TypeMethodDescriptiongetFragmentResponse
(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse resp) getFragmentResponse kicks off an asynchronous includes and returns a FragmentRespnse object which is used later to insert the include contents.void
Set the AsyncRequestDispatcherConfig object used to customize messages and timeouts for specific includes.Methods inherited from interface jakarta.servlet.RequestDispatcher
forward, include
-
Method Details
-
getFragmentResponse
FragmentResponse getFragmentResponse(jakarta.servlet.ServletRequest req, jakarta.servlet.ServletResponse resp) throws jakarta.servlet.ServletException, IOException getFragmentResponse kicks off an asynchronous includes and returns a FragmentRespnse object which is used later to insert the include contents.- Parameters:
req
- ServletRequestresp
- ServletResponse- Returns:
- FragmentResponse
- Throws:
jakarta.servlet.ServletException
IOException
-
setAsyncRequestDispatcherConfig
Set the AsyncRequestDispatcherConfig object used to customize messages and timeouts for specific includes.- Parameters:
config
-
-