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
IllegalStateException
void addListener(AsyncListener listener, ServletRequest request, ServletResponse response) throws IllegalStateException
IllegalStateException
void complete()
<T extends AsyncListener> T createListener(Class<T> clazz) throws ServletException
ServletException
void dispatch() throws IllegalStateException
IllegalStateException
void dispatch(ServletContext servletContext, String path) throws IllegalStateException
IllegalStateException
void dispatch(String path) throws IllegalStateException
IllegalStateException
ServletRequest getRequest()
ServletResponse getResponse()
long getTimeout()
boolean hasOriginalRequestAndResponse()
void setTimeout(long timeoutMilliseconds) throws IllegalStateException
IllegalStateException
void start(Runnable run)
Copyright © 2013. All rights reserved.