public class AsyncEvent
extends java.lang.Object
AsyncListener
.Constructor and Description |
---|
AsyncEvent(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,
java.lang.Throwable throwable)
Creates an instance using the provide parameters.
|
AsyncEvent(AsyncContext context,
java.lang.Throwable throwable)
Creates an instance using the provide parameters.
|
Modifier and Type | Method and Description |
---|---|
AsyncContext |
getAsyncContext()
Obtain the asynchronous context associated with the event.
|
ServletRequest |
getSuppliedRequest()
Obtain the request associated with the event.
|
ServletResponse |
getSuppliedResponse()
Obtain the response associated with the event.
|
java.lang.Throwable |
getThrowable()
Obtain the throwable associated with the event.
|
public AsyncEvent(AsyncContext context)
context
- The asynchronous context associated with the eventpublic AsyncEvent(AsyncContext context, ServletRequest request, ServletResponse response)
context
- The asynchronous context associated with the eventrequest
- The request associated with the eventresponse
- The response associated with the eventpublic AsyncEvent(AsyncContext context, java.lang.Throwable throwable)
context
- The asynchronous context associated with the eventthrowable
- The throwable associated with the eventpublic AsyncEvent(AsyncContext context, ServletRequest request, ServletResponse response, java.lang.Throwable throwable)
context
- The asynchronous context associated with the eventrequest
- The request associated with the eventresponse
- The response associated with the eventthrowable
- The throwable associated with the eventpublic AsyncContext getAsyncContext()
null
if one was not specifiedpublic ServletRequest getSuppliedRequest()
null
if one was not specifiedpublic ServletResponse getSuppliedResponse()
null
if one was not specifiedpublic java.lang.Throwable getThrowable()
null
if one was not specifiedCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.