Package jakarta.servlet
Class AsyncEvent
java.lang.Object
jakarta.servlet.AsyncEvent
Used to pass data to the methods of 
AsyncListener.- Since:
- Servlet 3.0
- 
Constructor SummaryConstructorsConstructorDescriptionAsyncEvent(AsyncContext context) Creates an instance using the provide parameters.AsyncEvent(AsyncContext context, ServletRequest request, ServletResponse response) Creates an instance using the provide parameters.AsyncEvent(AsyncContext context, ServletRequest request, ServletResponse response, Throwable throwable) Creates an instance using the provide parameters.AsyncEvent(AsyncContext context, Throwable throwable) Creates an instance using the provide parameters.
- 
Method SummaryModifier and TypeMethodDescriptionObtain the asynchronous context associated with the event.Obtain the request associated with the event.Obtain the response associated with the event.Obtain the throwable associated with the event.
- 
Constructor Details- 
AsyncEventCreates an instance using the provide parameters.- Parameters:
- context- The asynchronous context associated with the event
 
- 
AsyncEventCreates an instance using the provide parameters.- Parameters:
- context- The asynchronous context associated with the event
- request- The request associated with the event
- response- The response associated with the event
 
- 
AsyncEventCreates an instance using the provide parameters.- Parameters:
- context- The asynchronous context associated with the event
- throwable- The throwable associated with the event
 
- 
AsyncEventpublic AsyncEvent(AsyncContext context, ServletRequest request, ServletResponse response, Throwable throwable) Creates an instance using the provide parameters.- Parameters:
- context- The asynchronous context associated with the event
- request- The request associated with the event
- response- The response associated with the event
- throwable- The throwable associated with the event
 
 
- 
- 
Method Details- 
getAsyncContextObtain the asynchronous context associated with the event.- Returns:
- The asynchronous context associated with the event or nullif one was not specified
 
- 
getSuppliedRequestObtain the request associated with the event.- Returns:
- The request associated with the event or nullif one was not specified
 
- 
getSuppliedResponseObtain the response associated with the event.- Returns:
- The response associated with the event or nullif one was not specified
 
- 
getThrowableObtain the throwable associated with the event.- Returns:
- The throwable associated with the event or nullif one was not specified
 
 
-