public interface AsyncContext
| Modifier and Type | Field and Description |
|---|---|
static String |
ASYNC_CONTEXT_PATH |
static String |
ASYNC_PATH_INFO |
static String |
ASYNC_QUERY_STRING |
static String |
ASYNC_REQUEST_URI |
static String |
ASYNC_SERVLET_PATH |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(AsyncListener listener) |
void |
addListener(AsyncListener listener,
ServletRequest request,
ServletResponse response) |
void |
complete() |
<T extends AsyncListener> |
createListener(Class<T> clazz) |
void |
dispatch() |
void |
dispatch(ServletContext servletContext,
String path) |
void |
dispatch(String path) |
ServletRequest |
getRequest() |
ServletResponse |
getResponse() |
long |
getTimeout()
Returns current timeout value in milliseconds.
|
boolean |
hasOriginalRequestAndResponse() |
void |
setTimeout(long timeoutMilliseconds) |
void |
start(Runnable run) |
static final String ASYNC_CONTEXT_PATH
static final String ASYNC_PATH_INFO
static final String ASYNC_QUERY_STRING
static final String ASYNC_REQUEST_URI
static final String ASYNC_SERVLET_PATH
void addListener(AsyncListener listener) throws IllegalStateException
IllegalStateExceptionvoid addListener(AsyncListener listener, ServletRequest request, ServletResponse response) throws IllegalStateException
IllegalStateExceptionvoid complete()
<T extends AsyncListener> T createListener(Class<T> clazz) throws ServletException
ServletExceptionvoid dispatch()
throws IllegalStateException
IllegalStateExceptionvoid dispatch(ServletContext servletContext, String path) throws IllegalStateException
IllegalStateExceptionvoid dispatch(String path) throws IllegalStateException
IllegalStateExceptionServletRequest getRequest()
ServletResponse getResponse()
long getTimeout()
boolean hasOriginalRequestAndResponse()
void setTimeout(long timeoutMilliseconds)
throws IllegalStateException
IllegalStateExceptionvoid start(Runnable run)
Copyright © 2013. All Rights Reserved.