Uses of Interface
jakarta.servlet.AsyncContext
Package
Description
The jakarta.servlet package contains a number of classes and interfaces that describe and define the contracts between a servlet class and the runtime environment provided for an instance of such a class by a conforming servlet container.
-
Uses of AsyncContext in jakarta.servlet
Modifier and TypeMethodDescriptionAsyncEvent.getAsyncContext()
Gets the AsyncContext from this AsyncEvent.ServletRequest.getAsyncContext()
Gets the AsyncContext that was created or reinitialized by the most recent invocation ofServletRequest.startAsync()
orServletRequest.startAsync(ServletRequest,ServletResponse)
on this request.ServletRequestWrapper.getAsyncContext()
Gets the AsyncContext that was created or reinitialized by the most recent invocation ofServletRequestWrapper.startAsync()
orServletRequestWrapper.startAsync(ServletRequest,ServletResponse)
on the wrapped request.ServletRequest.startAsync()
Puts this request into asynchronous mode, and initializes itsAsyncContext
with the original (unwrapped) ServletRequest and ServletResponse objects.ServletRequest.startAsync
(ServletRequest servletRequest, ServletResponse servletResponse) Puts this request into asynchronous mode, and initializes itsAsyncContext
with the given request and response objects.ServletRequestWrapper.startAsync()
The default behavior of this method is to invokeServletRequest.startAsync()
on the wrapped request object.ServletRequestWrapper.startAsync
(ServletRequest servletRequest, ServletResponse servletResponse) The default behavior of this method is to invokeServletRequest.startAsync(ServletRequest, ServletResponse)
on the wrapped request object.ModifierConstructorDescriptionAsyncEvent
(AsyncContext context) Constructs an AsyncEvent from the given AsyncContext.AsyncEvent
(AsyncContext context, ServletRequest request, ServletResponse response) Constructs an AsyncEvent from the given AsyncContext, ServletRequest, and ServletResponse.AsyncEvent
(AsyncContext context, ServletRequest request, ServletResponse response, Throwable throwable) Constructs an AsyncEvent from the given AsyncContext, ServletRequest, ServletResponse, and Throwable.AsyncEvent
(AsyncContext context, Throwable throwable) Constructs an AsyncEvent from the given AsyncContext and Throwable.