| Modifier and Type | Field and Description |
|---|---|
| public static final String | ASYNC_CONTEXT_PATH
The attribute name for the Context Path of the async request |
| public static final String | ASYNC_MAPPING
The attribute name for the Mapping of the async request |
| public static final String | ASYNC_PATH_INFO
The attribute name for the Path Info of the async request |
| public static final String | ASYNC_QUERY_STRING
The attribute name for the Query String of the async request |
| public static final String | ASYNC_REQUEST_URI
The attribute name for the URI of the async request |
| public static final String | ASYNC_SERVLET_PATH
The attribute name for the Servlet Path of the async request |
| Modifier and Type | Method and Description |
|---|---|
| public void | addListener(AsyncListener
an AsyncListener that will be called with AsyncEvent objects listener)Adds an event listener that will be called for different AsyncEvents fire |
| public void | addListener(AsyncListener
an AsyncListener that will be called with AsyncEvent objects listener, ServletRequest the ServletRequest that will be passed with the AsyncEvent request, ServletResponse the ServletResponse that will be passed with the AsyncEvent response)Adds an event listener that will be called when different AsyncEvents fire |
| public void | |
| public < The type to create that extends AsyncListener T extends AsyncListener> T | Returns: the newly created AsyncListener objectThe class to instantiate to create the listener clazz)Creates and returns an AsyncListener object |
| public void | |
| public void | dispatch(String
The path to which the request/response should be dispatched relative to the path)ServletContext
from which this async request was started.
|
| public void | dispatch(ServletContext
The context, String ServletContext to which the request/response should be dispatched.The path to which the request/response should be dispatched relative to the specified
path)ServletContext.
|
| public ServletRequest | |
| public ServletResponse | |
| public long | Returns: The timeout in milliseconds. 0 or less indicates no timeout.Get the current timeout. |
| public boolean | |
| public void | setTimeout(long
The timeout in milliseconds. 0 or less indicates no timeout. timeout)Set the timeout. |
| public void |
| ASYNC_CONTEXT_PATH | back to summary |
|---|---|
| public static final String ASYNC_CONTEXT_PATH The attribute name for the Context Path of the async request | |
| ASYNC_MAPPING | back to summary |
|---|---|
| public static final String ASYNC_MAPPING The attribute name for the Mapping of the async request | |
| ASYNC_PATH_INFO | back to summary |
|---|---|
| public static final String ASYNC_PATH_INFO The attribute name for the Path Info of the async request | |
| ASYNC_QUERY_STRING | back to summary |
|---|---|
| public static final String ASYNC_QUERY_STRING The attribute name for the Query String of the async request | |
| ASYNC_REQUEST_URI | back to summary |
|---|---|
| public static final String ASYNC_REQUEST_URI The attribute name for the URI of the async request | |
| ASYNC_SERVLET_PATH | back to summary |
|---|---|
| public static final String ASYNC_SERVLET_PATH The attribute name for the Servlet Path of the async request | |
| addListener | back to summary |
|---|---|
| public void addListener(AsyncListener listener) Adds an event listener that will be called for different AsyncEvents fire
| |
| addListener | back to summary |
|---|---|
| public void addListener(AsyncListener listener, ServletRequest request, ServletResponse response) Adds an event listener that will be called when different AsyncEvents fire
| |
| complete | back to summary |
|---|---|
| public void complete() Completes the async request processing and closes the response stream | |
| createListener | back to summary |
|---|---|
| public <T extends AsyncListener> T createListener(Class<T> clazz) throws ServletException Creates and returns an AsyncListener object
| |
| dispatch | back to summary |
|---|---|
public void dispatch()
| |
| dispatch | back to summary |
|---|---|
public void dispatch(String path)
| |
| dispatch | back to summary |
|---|---|
public void dispatch(ServletContext context, String path)
| |
| getRequest | back to summary |
|---|---|
public ServletRequest getRequest()
| |
| getResponse | back to summary |
|---|---|
public ServletResponse getResponse()
| |
| getTimeout | back to summary |
|---|---|
| public long getTimeout() Get the current timeout.
| |
| hasOriginalRequestAndResponse | back to summary |
|---|---|
public boolean hasOriginalRequestAndResponse()
| |
| setTimeout | back to summary |
|---|---|
| public void setTimeout(long timeout) Set the timeout.
| |
| start | back to summary |
|---|---|
| public void start(Runnable run) Starts a new thread to process the asynchronous request
| |