Example usage for Java javax.servlet AsyncContext fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addListener(AsyncListener listener) Registers the given AsyncListener with the most recent asynchronous cycle that was started by a call to one of the ServletRequest#startAsync methods. |
void | complete() Completes the asynchronous operation that was started on the request that was used to initialze this AsyncContext, closing the response that was used to initialize this AsyncContext. |
void | dispatch() Dispatches the request and response objects of this AsyncContext to the servlet container. |
ServletRequest | getRequest() Gets the request that was used to initialize this AsyncContext by calling ServletRequest#startAsync() or ServletRequest#startAsync(ServletRequest,ServletResponse) . |
ServletResponse | getResponse() Gets the response that was used to initialize this AsyncContext by calling ServletRequest#startAsync() or ServletRequest#startAsync(ServletRequest,ServletResponse) . |
void | setTimeout(long timeout) Sets the timeout (in milliseconds) for this AsyncContext. |
void | start(Runnable run) Causes the container to dispatch a thread, possibly from a managed thread pool, to run the specified Runnable. |