Package javax.servlet
Class AsyncEvent
- java.lang.Object
- 
- javax.servlet.AsyncEvent
 
- 
 public class AsyncEvent extends java.lang.ObjectUsed to pass data to the methods ofAsyncListener.- Since:
- Servlet 3.0
 
- 
- 
Constructor SummaryConstructors Constructor Description AsyncEvent(AsyncContext context)Creates an instance using the provide parameters.AsyncEvent(AsyncContext context, java.lang.Throwable throwable)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, java.lang.Throwable throwable)Creates an instance using the provide parameters.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncContextgetAsyncContext()Obtain the asynchronous context associated with the event.ServletRequestgetSuppliedRequest()Obtain the request associated with the event.ServletResponsegetSuppliedResponse()Obtain the response associated with the event.java.lang.ThrowablegetThrowable()Obtain the throwable associated with the event.
 
- 
- 
- 
Constructor Detail- 
AsyncEventpublic AsyncEvent(AsyncContext context) Creates an instance using the provide parameters.- Parameters:
- context- The asynchronous context associated with the event
 
 - 
AsyncEventpublic AsyncEvent(AsyncContext context, ServletRequest request, ServletResponse response) 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
 
 - 
AsyncEventpublic AsyncEvent(AsyncContext context, java.lang.Throwable throwable) Creates 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, java.lang.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 Detail- 
getAsyncContextpublic AsyncContext getAsyncContext() Obtain the asynchronous context associated with the event.- Returns:
- The asynchronous context associated with the event or
          nullif one was not specified
 
 - 
getSuppliedRequestpublic ServletRequest getSuppliedRequest() Obtain the request associated with the event.- Returns:
- The request associated with the event or
          nullif one was not specified
 
 - 
getSuppliedResponsepublic ServletResponse getSuppliedResponse() Obtain the response associated with the event.- Returns:
- The response associated with the event or
          nullif one was not specified
 
 - 
getThrowablepublic java.lang.Throwable getThrowable() Obtain the throwable associated with the event.- Returns:
- The throwable associated with the event or
          nullif one was not specified
 
 
- 
 
-