Package javax.servlet
Class AsyncEvent
- java.lang.Object
-
- javax.servlet.AsyncEvent
-
public class AsyncEvent extends Object
The AsyncEvent API.- Author:
- Manfred Riem ([email protected])
-
-
Constructor Summary
Constructors Constructor Description AsyncEvent(AsyncContext context)
Constructor.AsyncEvent(AsyncContext context, Throwable throwable)
Constructor.AsyncEvent(AsyncContext context, ServletRequest suppliedRequest, ServletResponse suppliedResponse)
Constructor.AsyncEvent(AsyncContext context, ServletRequest suppliedRequest, ServletResponse suppliedResponse, Throwable throwable)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AsyncContext
getAsyncContext()
Get the async context.ServletRequest
getSuppliedRequest()
Get the supplied request.ServletResponse
getSuppliedResponse()
Get the supplied response.Throwable
getThrowable()
Get the throwable.
-
-
-
Constructor Detail
-
AsyncEvent
public AsyncEvent(AsyncContext context)
Constructor.- Parameters:
context
- the async context.
-
AsyncEvent
public AsyncEvent(AsyncContext context, ServletRequest suppliedRequest, ServletResponse suppliedResponse)
Constructor.- Parameters:
context
- the async context.suppliedRequest
- the request.suppliedResponse
- the response.
-
AsyncEvent
public AsyncEvent(AsyncContext context, Throwable throwable)
Constructor.- Parameters:
context
- the async context.throwable
- the throwable.
-
AsyncEvent
public AsyncEvent(AsyncContext context, ServletRequest suppliedRequest, ServletResponse suppliedResponse, Throwable throwable)
Constructor- Parameters:
context
- the context.suppliedRequest
- the request.suppliedResponse
- the response.throwable
- the throwable.
-
-
Method Detail
-
getAsyncContext
public AsyncContext getAsyncContext()
Get the async context.- Returns:
- the async context.
-
getSuppliedRequest
public ServletRequest getSuppliedRequest()
Get the supplied request.- Returns:
- the supplied request.
-
getSuppliedResponse
public ServletResponse getSuppliedResponse()
Get the supplied response.- Returns:
- the supplied response.
-
getThrowable
public Throwable getThrowable()
Get the throwable.- Returns:
- the throwable.
-
-