ServerHttpAsyncRequestControl to use on Servlet containers.
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicBoolean | |
| private AsyncContext | |
| private static final long | |
| private final ServletServerHttpRequest | |
| private final ServletServerHttpResponse |
| Access | Constructor and Description |
|---|---|
| public | ServletServerHttpAsyncRequestControl(ServletServerHttpRequest request, ServletServerHttpResponse response)
Constructor accepting a request and response pair that are expected to be of type
|
| Modifier and Type | Method and Description |
|---|---|
| public void | complete()
Implements org. Mark asynchronous request processing as completed. |
| public boolean | isCompleted()
Implements org. Return whether asynchronous request processing has been completed. |
| public boolean | isStarted()
Implements org. Return whether asynchronous request processing has been started. |
| public void | onComplete(AsyncEvent
Provides access to the objects associated with the event event)Implements jakarta. This event is fired after the call to |
| public void | onError(AsyncEvent
Provides access to the objects associated with the event event)Implements jakarta. This event is fired if an error occurs during an asynchronous operation but before the container takes any action as a result of the error. |
| public void | onStartAsync(AsyncEvent
Provides access to the objects associated with the event event)Implements jakarta. This event is fired if new call is made to |
| public void | onTimeout(AsyncEvent
Provides access to the objects associated with the event event)Implements jakarta. This event is fired if an asynchronous operation times out but before the container takes any action as a result of the timeout. |
| public void | start()
Implements org. Enable asynchronous processing after which the response remains open until a call
to |
| public void | start(long timeout)
Implements org. A variation on |
| asyncCompleted | back to summary |
|---|---|
| private final AtomicBoolean asyncCompleted | |
| asyncContext | back to summary |
|---|---|
| private AsyncContext asyncContext
| |
| NO_TIMEOUT_VALUE | back to summary |
|---|---|
| private static final long NO_TIMEOUT_VALUE | |
| request | back to summary |
|---|---|
| private final ServletServerHttpRequest request | |
| response | back to summary |
|---|---|
| private final ServletServerHttpResponse response | |
| ServletServerHttpAsyncRequestControl | back to summary |
|---|---|
| public ServletServerHttpAsyncRequestControl(ServletServerHttpRequest request, ServletServerHttpResponse response) Constructor accepting a request and response pair that are expected to be of type
| |
| complete | back to summary |
|---|---|
| public void complete() Implements org. Doc from org. Mark asynchronous request processing as completed.
| |
| isCompleted | back to summary |
|---|---|
| public boolean isCompleted() Implements org. Doc from org. Return whether asynchronous request processing has been completed.
| |
| isStarted | back to summary |
|---|---|
| public boolean isStarted() Implements org. Doc from org. Return whether asynchronous request processing has been started.
| |
| onComplete | back to summary |
|---|---|
| public void onComplete(AsyncEvent event) throws IOException Implements jakarta. Doc from jakarta. This event is fired after the call to
| |
| onError | back to summary |
|---|---|
| public void onError(AsyncEvent event) throws IOException Implements jakarta. Doc from jakarta. This event is fired if an error occurs during an asynchronous operation but before the container takes any action as a result of the error.
| |
| onStartAsync | back to summary |
|---|---|
| public void onStartAsync(AsyncEvent event) throws IOException Implements jakarta. Doc from jakarta. This event is fired if new call is made to
| |
| onTimeout | back to summary |
|---|---|
| public void onTimeout(AsyncEvent event) throws IOException Implements jakarta. Doc from jakarta. This event is fired if an asynchronous operation times out but before the container takes any action as a result of the timeout.
| |
| start | back to summary |
|---|---|
| public void start() Implements org. Doc from org. Enable asynchronous processing after which the response remains open until a call
to
| |
| start | back to summary |
|---|---|
| public void start(long timeout) Implements org. Doc from org. A variation on
| |