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. |
| public boolean | isCompleted()
Implements org. |
| public boolean | isStarted()
Implements org. |
| public void | onComplete(AsyncEvent
Provides access to the objects associated with the event event)Implements jakarta. AsyncContext#complete() has been processed by the container.
|
| public void | onError(AsyncEvent
Provides access to the objects associated with the event event)Implements jakarta. |
| public void | onStartAsync(AsyncEvent
Provides access to the objects associated with the event event)Implements jakarta. ServletRequest#startAsync() after the completion of the
AsyncContext to which this listener was added.
|
| public void | onTimeout(AsyncEvent
Provides access to the objects associated with the event event)Implements jakarta. |
| public void | start()
Implements org. complete() is made or the server times out the request.
|
| public void | start(long timeout)
Implements org. start() that allows specifying a timeout value to use
for asynchronous processing.
|
| 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
| |