javax.servlet
Interface AsyncContext

All Known Implementing Classes:
AsyncConnectionImpl, AsyncContextImpl

public interface AsyncContext

Asynchronous/comet servlet support.

Since:
Servlet 3.0

Field Summary
static java.lang.String ASYNC_CONTEXT_PATH
           
static java.lang.String ASYNC_PATH_INFO
           
static java.lang.String ASYNC_QUERY_STRING
           
static java.lang.String ASYNC_REQUEST_URI
           
static java.lang.String ASYNC_SERVLET_PATH
           
 
Method Summary
 void addListener(AsyncListener listener)
           
 void addListener(AsyncListener listener, ServletRequest request, ServletResponse response)
           
 void complete()
           
<T extends AsyncListener>
T
createListener(java.lang.Class<T> cl)
           
 void dispatch()
           
 void dispatch(ServletContext context, java.lang.String path)
           
 void dispatch(java.lang.String path)
           
 ServletRequest getRequest()
           
 ServletResponse getResponse()
           
 long getTimeout()
           
 boolean hasOriginalRequestAndResponse()
           
 void setTimeout(long timeout)
           
 void start(java.lang.Runnable run)
           
 

Field Detail

ASYNC_CONTEXT_PATH

static final java.lang.String ASYNC_CONTEXT_PATH
See Also:
Constant Field Values

ASYNC_PATH_INFO

static final java.lang.String ASYNC_PATH_INFO
See Also:
Constant Field Values

ASYNC_QUERY_STRING

static final java.lang.String ASYNC_QUERY_STRING
See Also:
Constant Field Values

ASYNC_REQUEST_URI

static final java.lang.String ASYNC_REQUEST_URI
See Also:
Constant Field Values

ASYNC_SERVLET_PATH

static final java.lang.String ASYNC_SERVLET_PATH
See Also:
Constant Field Values
Method Detail

getRequest

ServletRequest getRequest()

getResponse

ServletResponse getResponse()

hasOriginalRequestAndResponse

boolean hasOriginalRequestAndResponse()

dispatch

void dispatch()

dispatch

void dispatch(java.lang.String path)

dispatch

void dispatch(ServletContext context,
              java.lang.String path)

complete

void complete()

start

void start(java.lang.Runnable run)

addListener

void addListener(AsyncListener listener)

addListener

void addListener(AsyncListener listener,
                 ServletRequest request,
                 ServletResponse response)

createListener

<T extends AsyncListener> T createListener(java.lang.Class<T> cl)
                                       throws ServletException
Throws:
ServletException

setTimeout

void setTimeout(long timeout)

getTimeout

long getTimeout()