| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final Object | |
| private Context | |
| private volatile Runnable | |
| private AsyncEvent | |
| private final AtomicBoolean | |
| private final AtomicBoolean | |
| private boolean | |
| private final List | |
| private static final Log | |
| private volatile Request | |
| private volatile ServletRequest | |
| private volatile ServletResponse | |
| protected static final StringManager | |
| private long |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addListener(AsyncListener
an AsyncListener that will be called with AsyncEvent objects listener)Implements jakarta. 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 servletRequest, ServletResponse the ServletResponse that will be passed with the AsyncEvent servletResponse)Implements jakarta. Adds an event listener that will be called when different AsyncEvents fire |
| private void | |
| private void | |
| public void | complete()
Implements jakarta. Completes the async request processing and closes the response stream |
| public <T extends AsyncListener> T | createListener(Class<T>
The class to instantiate to create the listener clazz)Implements jakarta. Creates and returns an AsyncListener object |
| public void | decrementInProgressAsyncCount()
Implements org. Used to notify the Context that async processing has ended. |
| 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.Implements jakarta.
|
| public void | dispatch(ServletContext
The servletContext, 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.Implements jakarta.
|
| protected void | |
| public void | |
| public ServletRequest | |
| public ServletResponse | |
| public long | |
| public boolean | |
| public void | incrementInProgressAsyncCount()
Implements org. Used to notify the Context that async processing has started. |
| public boolean | isAvailable()
Implements org. Reports if the web application associated with this async request is available. |
| public boolean | |
| private void | |
| public void | |
| public void | |
| public void | setStarted(Context context, ServletRequest request, ServletResponse response, boolean originalRequestResponse)
|
| public void | setTimeout(long
The timeout in milliseconds. 0 or less indicates no timeout. timeout)Implements jakarta. Set the timeout. |
| public void | start(final Runnable
a Runnable that the new thread will run run)Implements jakarta. Starts a new thread to process the asynchronous request |
| public boolean |
| asyncContextLock | back to summary |
|---|---|
| private final Object asyncContextLock | |
| context | back to summary |
|---|---|
| private Context context | |
| dispatch | back to summary |
|---|---|
| private volatile Runnable dispatch | |
| event | back to summary |
|---|---|
| private AsyncEvent event | |
| hasErrorProcessingStarted | back to summary |
|---|---|
| private final AtomicBoolean hasErrorProcessingStarted | |
| hasOnErrorReturned | back to summary |
|---|---|
| private final AtomicBoolean hasOnErrorReturned | |
| hasOriginalRequestAndResponse | back to summary |
|---|---|
| private boolean hasOriginalRequestAndResponse | |
| listeners | back to summary |
|---|---|
| private final List<AsyncListenerWrapper> listeners | |
| log | back to summary |
|---|---|
| private static final Log log | |
| request | back to summary |
|---|---|
| private volatile Request request | |
| servletRequest | back to summary |
|---|---|
| private volatile ServletRequest servletRequest | |
| servletResponse | back to summary |
|---|---|
| private volatile ServletResponse servletResponse | |
| sm | back to summary |
|---|---|
| protected static final StringManager sm | |
| timeout | back to summary |
|---|---|
| private long timeout | |
| AsyncContextImpl | back to summary |
|---|---|
| public AsyncContextImpl(Request request) | |
| addListener | back to summary |
|---|---|
| public void addListener(AsyncListener listener) Implements jakarta. Doc from jakarta. Adds an event listener that will be called for different AsyncEvents fire
| |
| addListener | back to summary |
|---|---|
| public void addListener(AsyncListener listener, ServletRequest servletRequest, ServletResponse servletResponse) Implements jakarta. Doc from jakarta. Adds an event listener that will be called when different AsyncEvents fire
| |
| check | back to summary |
|---|---|
| private void check() | |
| clearServletRequestResponse | back to summary |
|---|---|
| private void clearServletRequestResponse() | |
| complete | back to summary |
|---|---|
| public void complete() Implements jakarta. Doc from jakarta. 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 Implements jakarta. Doc from jakarta. Creates and returns an AsyncListener object
| |
| decrementInProgressAsyncCount | back to summary |
|---|---|
| public void decrementInProgressAsyncCount() Implements org. Doc from org. Used to notify the Context that async processing has ended. Specifically, for the counting of in-progress async
requests to work correctly, this must be called exactly once every time the
| |
| dispatch | back to summary |
|---|---|
| public void dispatch() Implements jakarta.
| |
| dispatch | back to summary |
|---|---|
| public void dispatch(String path) Implements jakarta.
| |
| dispatch | back to summary |
|---|---|
| public void dispatch(ServletContext servletContext, String path) Implements jakarta.
| |
| doInternalDispatch | back to summary |
|---|---|
| protected void doInternalDispatch() throws ServletException, IOException | |
| fireOnComplete | back to summary |
|---|---|
| public void fireOnComplete() Implements org.
| |
| getRequest | back to summary |
|---|---|
| public ServletRequest getRequest() Implements jakarta.
| |
| getResponse | back to summary |
|---|---|
| public ServletResponse getResponse() Implements jakarta.
| |
| getTimeout | back to summary |
|---|---|
| public long getTimeout() Implements jakarta. Doc from jakarta. Get the current timeout.
| |
| hasOriginalRequestAndResponse | back to summary |
|---|---|
| public boolean hasOriginalRequestAndResponse() Implements jakarta.
| |
| incrementInProgressAsyncCount | back to summary |
|---|---|
| public void incrementInProgressAsyncCount() Implements org. Doc from org. Used to notify the Context that async processing has started. Specifically, for the counting of in-progress async
requests to work correctly, this must be called exactly once every time the
| |
| isAvailable | back to summary |
|---|---|
| public boolean isAvailable() Implements org. Doc from org. Reports if the web application associated with this async request is available.
| |
| isStarted | back to summary |
|---|---|
| public boolean isStarted() | |
| logDebug | back to summary |
|---|---|
| private void logDebug(String method) | |
| recycle | back to summary |
|---|---|
| public void recycle() | |
| setErrorState | back to summary |
|---|---|
| public void setErrorState(Throwable t, boolean fireOnError) | |
| setStarted | back to summary |
|---|---|
| public void setStarted(Context context, ServletRequest request, ServletResponse response, boolean originalRequestResponse) | |
| setTimeout | back to summary |
|---|---|
| public void setTimeout(long timeout) Implements jakarta. Doc from jakarta. Set the timeout.
| |
| start | back to summary |
|---|---|
| public void start(final Runnable run) Implements jakarta. Doc from jakarta. Starts a new thread to process the asynchronous request | |
| timeout | back to summary |
|---|---|
| public boolean timeout() | |
| Modifier and Type | Field and Description |
|---|---|
| private final AsyncDispatcher | |
| private final Request | |
| private final ServletRequest | |
| private final ServletResponse |
| Access | Constructor and Description |
|---|---|
| pack-priv | AsyncRunnable(Request request, AsyncDispatcher applicationDispatcher, ServletRequest servletRequest, ServletResponse servletResponse)
|
| Modifier and Type | Method and Description |
|---|---|
| public void |
| applicationDispatcher | back to summary |
|---|---|
| private final AsyncDispatcher applicationDispatcher | |
| request | back to summary |
|---|---|
| private final Request request | |
| servletRequest | back to summary |
|---|---|
| private final ServletRequest servletRequest | |
| servletResponse | back to summary |
|---|---|
| private final ServletResponse servletResponse | |
| AsyncRunnable | back to summary |
|---|---|
| pack-priv AsyncRunnable(Request request, AsyncDispatcher applicationDispatcher, ServletRequest servletRequest, ServletResponse servletResponse) | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| DebugException | back to summary |
|---|---|
| private DebugException() | |
| Modifier and Type | Field and Description |
|---|---|
| private final Context | |
| private final Request | |
| private final Runnable |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| context | back to summary |
|---|---|
| private final Context context | |
| coyoteRequest | back to summary |
|---|---|
| private final Request coyoteRequest | |
| wrapped | back to summary |
|---|---|
| private final Runnable wrapped | |
| RunnableWrapper | back to summary |
|---|---|
| pack-priv RunnableWrapper(Runnable wrapped, Context ctxt, Request coyoteRequest) | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |