public interface AsyncContext
Modifier and Type | Field and Description |
---|---|
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 |
Modifier and Type | Method and Description |
---|---|
void |
addListener(AsyncListener listener) |
void |
addListener(AsyncListener listener,
ServletRequest request,
ServletResponse response) |
void |
complete() |
<T extends AsyncListener> |
createListener(java.lang.Class<T> clazz) |
void |
dispatch() |
void |
dispatch(ServletContext context,
java.lang.String path) |
void |
dispatch(java.lang.String path) |
ServletRequest |
getRequest() |
ServletResponse |
getResponse() |
long |
getTimeout()
Get timeout in milliseconds. 0 or less indicates no timeout.
|
boolean |
hasOriginalRequestAndResponse() |
void |
setTimeout(long timeout)
Set timeout in milliseconds. 0 or less indicates no timeout.
|
void |
start(java.lang.Runnable run) |
static final java.lang.String ASYNC_REQUEST_URI
static final java.lang.String ASYNC_CONTEXT_PATH
static final java.lang.String ASYNC_PATH_INFO
static final java.lang.String ASYNC_SERVLET_PATH
static final java.lang.String ASYNC_QUERY_STRING
ServletRequest getRequest()
ServletResponse getResponse()
boolean hasOriginalRequestAndResponse()
void dispatch()
java.lang.IllegalStateException
void dispatch(java.lang.String path)
path
- java.lang.IllegalStateException
void dispatch(ServletContext context, java.lang.String path)
context
- path
- java.lang.IllegalStateException
void complete()
void start(java.lang.Runnable run)
void addListener(AsyncListener listener)
void addListener(AsyncListener listener, ServletRequest request, ServletResponse response)
<T extends AsyncListener> T createListener(java.lang.Class<T> clazz) throws ServletException
ServletException
long getTimeout()
void setTimeout(long timeout)
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.