Java javax.servlet AsyncContext fields, constructors, methods, implement or subclass

Example usage for Java javax.servlet AsyncContext fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.servlet AsyncContext.

The text is from its open source code.

Implementation

javax.servlet.AsyncContext has the following implementations.
Click this link to see all its implementation.

Method

voidaddListener(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.
voidcomplete()
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.
voiddispatch()
Dispatches the request and response objects of this AsyncContext to the servlet container.
ServletRequestgetRequest()
Gets the request that was used to initialize this AsyncContext by calling ServletRequest#startAsync() or ServletRequest#startAsync(ServletRequest,ServletResponse) .
ServletResponsegetResponse()
Gets the response that was used to initialize this AsyncContext by calling ServletRequest#startAsync() or ServletRequest#startAsync(ServletRequest,ServletResponse) .
voidsetTimeout(long timeout)
Sets the timeout (in milliseconds) for this AsyncContext.
voidstart(Runnable run)
Causes the container to dispatch a thread, possibly from a managed thread pool, to run the specified Runnable.