Top Inners Fields Constructors Methods
org.glassfish.grizzly.servlet

pack-priv Class AsyncContextImpl

extends Object
implements AsyncContext
Class Inheritance
All Implemented Interfaces
jakarta.servlet.AsyncContext
Imports
java.io.IOException, java.util.LinkedList, java.util.concurrent.ExecutorService, .Executors, .ThreadFactory, java.util.concurrent.atomic.AtomicBoolean, .AtomicInteger, java.util.logging.Level, .Logger, org.glassfish.grizzly.http.server.util.Globals, jakarta.servlet.AsyncContext, .AsyncEvent, .AsyncListener, .DispatcherType, .RequestDispatcher, .ServletContext, .ServletException, .ServletRequest, .ServletResponse, jakarta.servlet.http.HttpServletRequest

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static enum
private static class
AsyncContextImpl.AsyncListenerContext

Class holding all the information required for invoking an AsyncListener (including the AsyncListener itself).

private static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
private final LinkedList<AsyncContextImpl.AsyncListenerContext>
private long
private static final long
private final AtomicBoolean
private final ThreadLocal<Boolean>
private final AtomicBoolean
private boolean
private final ThreadLocal<Boolean>
private boolean
private static final Logger
private final HttpServletRequestImpl
pack-priv static final ExecutorService
private ServletRequest
private ServletResponse
private final AtomicInteger

Constructor Summary

AccessConstructor and Description
pack-priv
AsyncContextImpl(HttpServletRequestImpl
the original (unwrapped) request
origRequest
,
ServletRequest
the possibly wrapped request passed to ServletRequest.startAsync
servletRequest
,
ServletResponse
the possibly wrapped response passed to ServletRequest.startAsync
servletResponse
,
boolean
true if the zero-arg version of startAsync was called, false otherwise
isStartAsyncWithZeroArg
)

Constructor

Method Summary

Modifier and TypeMethod and Description
public void
addListener(AsyncListener listener)

Implements jakarta.servlet.AsyncContext.addListener.

Registers the given AsyncListener with the most recent asynchronous cycle that was started by a call to one of the ServletRequest#startAsync methods.

public void
addListener(AsyncListener listener, ServletRequest servletRequest, ServletResponse servletResponse)

Implements jakarta.servlet.AsyncContext.addListener.

Registers the given AsyncListener with the most recent asynchronous cycle that was started by a call to one of the ServletRequest#startAsync methods.

pack-priv void
public void
complete()

Implements jakarta.servlet.AsyncContext.complete.

Completes the asynchronous operation that was started on the request that was used to initialze this AsyncContext, closing the response that was used to initialize this AsyncContext.

public <T extends AsyncListener> T
createListener(Class<T> clazz)

Implements jakarta.servlet.AsyncContext.createListener.

Instantiates the given AsyncListener class.

public void
dispatch()

Implements jakarta.servlet.AsyncContext.dispatch.

Dispatches the request and response objects of this AsyncContext to the servlet container.

public void
dispatch(String path)

Implements jakarta.servlet.AsyncContext.dispatch.

Dispatches the request and response objects of this AsyncContext to the given path.

public void
dispatch(ServletContext context, String path)

Implements jakarta.servlet.AsyncContext.dispatch.

Dispatches the request and response objects of this AsyncContext to the given path scoped to the given context.

pack-priv boolean
private String
pack-priv HttpServletRequestImpl
public ServletRequest
getRequest()

Implements jakarta.servlet.AsyncContext.getRequest.

Gets the request that was used to initialize this AsyncContext by calling ServletRequest#startAsync() or ServletRequest#startAsync(ServletRequest, ServletResponse).

public ServletResponse
getResponse()

Implements jakarta.servlet.AsyncContext.getResponse.

Gets the response that was used to initialize this AsyncContext by calling ServletRequest#startAsync() or ServletRequest#startAsync(ServletRequest, ServletResponse).

public long
getTimeout()

Implements jakarta.servlet.AsyncContext.getTimeout.

Gets the timeout (in milliseconds) for this AsyncContext.

private RequestDispatcher

Returns:

the dispatcher of the zero-argument async dispatch
getZeroArgDispatcher
(HttpServletRequestImpl origRequest, ServletRequest servletRequest, boolean isStartAsyncWithZeroArg)

Determines the dispatcher of a zero-argument async dispatch for the given request.

public boolean
hasOriginalRequestAndResponse()

Implements jakarta.servlet.AsyncContext.hasOriginalRequestAndResponse.

Checks if this AsyncContext was initialized with the original or application-wrapped request and response objects.

private void
init(ServletRequest servletRequest, ServletResponse servletResponse, boolean isStartAsyncWithZeroArg)

pack-priv boolean
pack-priv boolean
isOkToConfigure()

Returns: value true if calls to AsyncContext#addListener and AsyncContext#setTimeout will be accepted, and false if these calls will result in an IllegalStateException

pack-priv boolean
pack-priv void
pack-priv void
reinitialize(ServletRequest servletRequest, ServletResponse servletResponse, boolean isStartAsyncWithZeroArg)

pack-priv void
setOkToConfigure(boolean
true if calls to AsyncContext#addListener and AsyncContext#setTimeout will be accepted, and false if these calls will result in an IllegalStateException
value
)

public void
setTimeout(long timeout)

Implements jakarta.servlet.AsyncContext.setTimeout.

Sets the timeout (in milliseconds) for this AsyncContext.

public void
start(Runnable run)

Implements jakarta.servlet.AsyncContext.start.

Causes the container to dispatch a thread, possibly from a managed thread pool, to run the specified Runnable.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

asyncListenerContextsback to summary
private final LinkedList<AsyncContextImpl.AsyncListenerContext> asyncListenerContexts
asyncTimeoutMillisback to summary
private long asyncTimeoutMillis
DEFAULT_ASYNC_TIMEOUT_MILLISback to summary
private static final long DEFAULT_ASYNC_TIMEOUT_MILLIS
isDispatchInProgressback to summary
private final AtomicBoolean isDispatchInProgress
isDispatchInScopeback to summary
private final ThreadLocal<Boolean> isDispatchInScope
isOkToConfigureback to summary
private final AtomicBoolean isOkToConfigure
isOriginalRequestAndResponseback to summary
private boolean isOriginalRequestAndResponse
isStartAsyncInScopeback to summary
private final ThreadLocal<Boolean> isStartAsyncInScope
isStartAsyncWithZeroArgback to summary
private boolean isStartAsyncWithZeroArg
logback to summary
private static final Logger log
origRequestback to summary
private final HttpServletRequestImpl origRequest
poolback to summary
pack-priv static final ExecutorService pool
servletRequestback to summary
private ServletRequest servletRequest
servletResponseback to summary
private ServletResponse servletResponse
startAsyncCounterback to summary
private final AtomicInteger startAsyncCounter

Constructor Detail

AsyncContextImplback to summary
pack-priv AsyncContextImpl(HttpServletRequestImpl origRequest, ServletRequest servletRequest, ServletResponse servletResponse, boolean isStartAsyncWithZeroArg)

Constructor

Parameters
origRequest:HttpServletRequestImpl

the original (unwrapped) request

servletRequest:ServletRequest

the possibly wrapped request passed to ServletRequest.startAsync

servletResponse:ServletResponse

the possibly wrapped response passed to ServletRequest.startAsync

isStartAsyncWithZeroArg:boolean

true if the zero-arg version of startAsync was called, false otherwise

Method Detail

addListenerback to summary
public void addListener(AsyncListener listener)

Implements jakarta.servlet.AsyncContext.addListener.

Doc from jakarta.servlet.AsyncContext.addListener.

Registers the given AsyncListener with the most recent asynchronous cycle that was started by a call to one of the ServletRequest#startAsync methods.

The given AsyncListener will receive an AsyncEvent when the asynchronous cycle completes successfully, times out, results in an error, or a new asynchronous cycle is being initiated via one of the ServletRequest#startAsync methods.

AsyncListener instances will be notified in the order in which they were added.

If ServletRequest#startAsync(ServletRequest, ServletResponse) or ServletRequest#startAsync is called, the exact same request and response objects are available from the AsyncEvent when the AsyncListener is notified.

Annotations
@Override
addListenerback to summary
public void addListener(AsyncListener listener, ServletRequest servletRequest, ServletResponse servletResponse)

Implements jakarta.servlet.AsyncContext.addListener.

Doc from jakarta.servlet.AsyncContext.addListener.

Registers the given AsyncListener with the most recent asynchronous cycle that was started by a call to one of the ServletRequest#startAsync methods.

The given AsyncListener will receive an AsyncEvent when the asynchronous cycle completes successfully, times out, results in an error, or a new asynchronous cycle is being initiated via one of the ServletRequest#startAsync methods.

AsyncListener instances will be notified in the order in which they were added.

The given ServletRequest and ServletResponse objects will be made available to the given AsyncListener via the getSuppliedRequest and getSuppliedResponse methods, respectively, of the AsyncEvent delivered to it. These objects should not be read from or written to, respectively, at the time the AsyncEvent is delivered, because additional wrapping may have occurred since the given AsyncListener was registered, but may be used in order to release any resources associated with them.

Annotations
@Override
clearback to summary
pack-priv void clear()
completeback to summary
public void complete()

Implements jakarta.servlet.AsyncContext.complete.

Doc from jakarta.servlet.AsyncContext.complete.

Completes the asynchronous operation that was started on the request that was used to initialze this AsyncContext, closing the response that was used to initialize this AsyncContext.

Any listeners of type AsyncListener that were registered with the ServletRequest for which this AsyncContext was created will be invoked at their onComplete method.

It is legal to call this method any time after a call to ServletRequest#startAsync() or ServletRequest#startAsync(ServletRequest, ServletResponse), and before a call to one of the dispatch methods of this class. If this method is called during a container-initiated dispatch, then the call will not take effect (including required listener invocations) until after the container-initiated dispatch has returned to the container.
Note: Container initiated dispatches include calls to:

If the output stream is in non-blocking mode when this method is called, the output stream will be closed as described by ServletOutputStream#close and this call to complete will not take effect (and any invocations of AsyncListener#onComplete(AsyncEvent) will be delayed) until after any in progress non-blocking write has completed.

Annotations
@Override
createListenerback to summary
public <T extends AsyncListener> T createListener(Class<T> clazz) throws ServletException

Implements jakarta.servlet.AsyncContext.createListener.

Doc from jakarta.servlet.AsyncContext.createListener.

Instantiates the given AsyncListener class.

The returned AsyncListener instance may be further customized before it is registered with this AsyncContext via a call to one of the addListener methods.

The given AsyncListener class must define a zero argument constructor, which is used to instantiate it.

This method supports resource injection if the given clazz represents a Managed Bean. See the Jakarta EE platform and CDI specifications for additional details about Managed Beans and resource injection.

This method supports any annotations applicable to AsyncListener.

Annotations
@Override
Exceptions
ServletException:
if the given clazz fails to be instantiated
dispatchback to summary
public void dispatch()

Implements jakarta.servlet.AsyncContext.dispatch.

Doc from jakarta.servlet.AsyncContext.dispatch.

Dispatches the request and response objects of this AsyncContext to the servlet container.

If the asynchronous cycle was started with ServletRequest#startAsync(ServletRequest, ServletResponse), and the request passed is an instance of HttpServletRequest, then the dispatch is to the URI returned by jakarta.servlet.http.HttpServletRequest#getRequestURI. Otherwise, the dispatch is to the URI of the request when it was last dispatched by the container.

The following sequence illustrates how this will work:

// REQUEST dispatch to /url/A
AsyncContext ac = request.startAsync();
...
ac.dispatch(); // ASYNC dispatch to /url/A

// REQUEST to /url/A
// FORWARD dispatch to /url/B
request.getRequestDispatcher("/url/B").forward(request,response);
// Start async operation from within the target of the FORWARD
// dispatch
ac = request.startAsync();
...
ac.dispatch(); // ASYNC dispatch to /url/A

// REQUEST to /url/A
// FORWARD dispatch to /url/B
request.getRequestDispatcher("/url/B").forward(request,response);
// Start async operation from within the target of the FORWARD
// dispatch
ac = request.startAsync(request,response);
...
ac.dispatch(); // ASYNC dispatch to /url/B

This method returns immediately after passing the request and response objects to a container managed thread, on which the dispatch operation will be performed. If this method is called during a container-initiated dispatch, the dispatch operation will be delayed until after the container-initiated dispatch has returned to the container.
Note: Container initiated dispatches include calls to:

If the output stream is in non-blocking mode when this method is called, the output stream will be closed as described by ServletOutputStream#close and the dispatch operation will be delayed until after any in progress non-blocking write has completed.

The dispatcher type of the request is set to DispatcherType.ASYNC. Unlike forward dispatches, the response buffer and headers will not be reset, and it is legal to dispatch even if the response has already been committed.

Control over the request and response is delegated to the dispatch target, and the response will be closed when the dispatch target has completed execution, unless ServletRequest#startAsync() or ServletRequest#startAsync(ServletRequest, ServletResponse) are called.

Any errors or exceptions that may occur during the execution of this method must be caught and handled by the container, as follows:

  1. Invoke, at their onError method, all AsyncListener instances registered with the ServletRequest for which this AsyncContext was created, and make the caught Throwable available via AsyncEvent#getThrowable.
  2. If none of the listeners called complete or any of the dispatch methods, perform an error dispatch with a status code equal to HttpServletResponse.SC_INTERNAL_SERVER_ERROR, and make the above Throwable available as the value of the RequestDispatcher.ERROR_EXCEPTION request attribute.
  3. If no matching error page was found, or the error page did not call complete or any of the dispatch methods, call complete.

There can be at most one asynchronous dispatch operation per asynchronous cycle, which is started by a call to one of the ServletRequest#startAsync methods. Any attempt to perform an additional asynchronous dispatch operation within the same asynchronous cycle will result in an IllegalStateException. If startAsync is subsequently called on the dispatched request, then any of the dispatch or complete methods may be called.

Annotations
@Override
dispatchback to summary
public void dispatch(String path)

Implements jakarta.servlet.AsyncContext.dispatch.

Doc from jakarta.servlet.AsyncContext.dispatch.

Dispatches the request and response objects of this AsyncContext to the given path.

The path parameter is interpreted in the same way as in ServletRequest#getRequestDispatcher(String), within the scope of the ServletContext from which this AsyncContext was initialized.

All path related query methods of the request must reflect the dispatch target, while the original request URI, context path, path info, servlet path, and query string may be recovered from the ASYNC_REQUEST_URI, ASYNC_CONTEXT_PATH, ASYNC_PATH_INFO, ASYNC_SERVLET_PATH, and ASYNC_QUERY_STRING attributes of the request. These attributes will always reflect the original path elements, even under repeated dispatches.

There can be at most one asynchronous dispatch operation per asynchronous cycle, which is started by a call to one of the ServletRequest#startAsync methods. Any attempt to perform an additional asynchronous dispatch operation within the same asynchronous cycle will result in an IllegalStateException. If startAsync is subsequently called on the dispatched request, then any of the dispatch or complete methods may be called.

See dispatch() for additional details, including error handling.

Annotations
@Override
dispatchback to summary
public void dispatch(ServletContext context, String path)

Implements jakarta.servlet.AsyncContext.dispatch.

Doc from jakarta.servlet.AsyncContext.dispatch.

Dispatches the request and response objects of this AsyncContext to the given path scoped to the given context.

The path parameter is interpreted in the same way as in ServletRequest#getRequestDispatcher(String), except that it is scoped to the given context.

All path related query methods of the request must reflect the dispatch target, while the original request URI, context path, path info, servlet path, and query string may be recovered from the ASYNC_REQUEST_URI, ASYNC_CONTEXT_PATH, ASYNC_PATH_INFO, ASYNC_SERVLET_PATH, and ASYNC_QUERY_STRING attributes of the request. These attributes will always reflect the original path elements, even under repeated dispatches.

There can be at most one asynchronous dispatch operation per asynchronous cycle, which is started by a call to one of the ServletRequest#startAsync methods. Any attempt to perform an additional asynchronous dispatch operation within the same asynchronous cycle will result in an IllegalStateException. If startAsync is subsequently called on the dispatched request, then any of the dispatch or complete methods may be called.

See dispatch() for additional details, including error handling.

Annotations
@Override
getAndResetDispatchInScopeback to summary
pack-priv boolean getAndResetDispatchInScope()
getCombinedPathback to summary
private String getCombinedPath(HttpServletRequest req)
getOriginalRequestback to summary
pack-priv HttpServletRequestImpl getOriginalRequest()
getRequestback to summary
public ServletRequest getRequest()

Implements jakarta.servlet.AsyncContext.getRequest.

Doc from jakarta.servlet.AsyncContext.getRequest.

Gets the request that was used to initialize this AsyncContext by calling ServletRequest#startAsync() or ServletRequest#startAsync(ServletRequest, ServletResponse).

Annotations
@Override
getResponseback to summary
public ServletResponse getResponse()

Implements jakarta.servlet.AsyncContext.getResponse.

Doc from jakarta.servlet.AsyncContext.getResponse.

Gets the response that was used to initialize this AsyncContext by calling ServletRequest#startAsync() or ServletRequest#startAsync(ServletRequest, ServletResponse).

Annotations
@Override
getTimeoutback to summary
public long getTimeout()

Implements jakarta.servlet.AsyncContext.getTimeout.

Doc from jakarta.servlet.AsyncContext.getTimeout.

Gets the timeout (in milliseconds) for this AsyncContext.

This method returns the container's default timeout for asynchronous operations, or the timeout value passed to the most recent invocation of setTimeout.

A timeout value of zero or less indicates no timeout.

Annotations
@Override
getZeroArgDispatcherback to summary
private RequestDispatcher getZeroArgDispatcher(HttpServletRequestImpl origRequest, ServletRequest servletRequest, boolean isStartAsyncWithZeroArg)

Determines the dispatcher of a zero-argument async dispatch for the given request.

Returns:RequestDispatcher

the dispatcher of the zero-argument async dispatch

hasOriginalRequestAndResponseback to summary
public boolean hasOriginalRequestAndResponse()

Implements jakarta.servlet.AsyncContext.hasOriginalRequestAndResponse.

Doc from jakarta.servlet.AsyncContext.hasOriginalRequestAndResponse.

Checks if this AsyncContext was initialized with the original or application-wrapped request and response objects.

This information may be used by filters invoked in the outbound direction, after a request was put into asynchronous mode, to determine whether any request and/or response wrappers that they added during their inbound invocation need to be preserved for the duration of the asynchronous operation, or may be released.

Annotations
@Override
initback to summary
private void init(ServletRequest servletRequest, ServletResponse servletResponse, boolean isStartAsyncWithZeroArg)
isDispatchInScopeback to summary
pack-priv boolean isDispatchInScope()
isOkToConfigureback to summary
pack-priv boolean isOkToConfigure()
Returns:boolean

value true if calls to AsyncContext#addListener and AsyncContext#setTimeout will be accepted, and false if these calls will result in an IllegalStateException

isStartAsyncInScopeback to summary
pack-priv boolean isStartAsyncInScope()
notifyAsyncListenersback to summary
pack-priv void notifyAsyncListeners(AsyncContextImpl.AsyncEventType asyncEventType, Throwable t)
reinitializeback to summary
pack-priv void reinitialize(ServletRequest servletRequest, ServletResponse servletResponse, boolean isStartAsyncWithZeroArg)
setOkToConfigureback to summary
pack-priv void setOkToConfigure(boolean value)
Parameters
value:boolean

true if calls to AsyncContext#addListener and AsyncContext#setTimeout will be accepted, and false if these calls will result in an IllegalStateException

setTimeoutback to summary
public void setTimeout(long timeout)

Implements jakarta.servlet.AsyncContext.setTimeout.

Doc from jakarta.servlet.AsyncContext.setTimeout.

Sets the timeout (in milliseconds) for this AsyncContext.

The timeout applies to this AsyncContext once the container-initiated dispatch during which one of the ServletRequest#startAsync methods was called has returned to the container.

The timeout will expire if neither the complete method nor any of the dispatch methods are called. A timeout value of zero or less indicates no timeout.

If setTimeout is not called, then the container's default timeout, which is available via a call to getTimeout, will apply.

The default value is 30000 ms.

Annotations
@Override
startback to summary
public void start(Runnable run)

Implements jakarta.servlet.AsyncContext.start.

Doc from jakarta.servlet.AsyncContext.start.

Causes the container to dispatch a thread, possibly from a managed thread pool, to run the specified Runnable. The container may propagate appropriate contextual information to the Runnable.

Annotations
@Override
org.glassfish.grizzly.servlet back to summary

pack-priv final Enum AsyncContextImpl.AsyncEventType

extends Enum<AsyncContextImpl.AsyncEventType>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final AsyncContextImpl.AsyncEventType
public static final AsyncContextImpl.AsyncEventType
public static final AsyncContextImpl.AsyncEventType
public static final AsyncContextImpl.AsyncEventType

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static AsyncContextImpl.AsyncEventType
public static AsyncContextImpl.AsyncEventType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

COMPLETEback to summary
public static final AsyncContextImpl.AsyncEventType COMPLETE
ERRORback to summary
public static final AsyncContextImpl.AsyncEventType ERROR
START_ASYNCback to summary
public static final AsyncContextImpl.AsyncEventType START_ASYNC
TIMEOUTback to summary
public static final AsyncContextImpl.AsyncEventType TIMEOUT

Constructor Detail

AsyncEventTypeback to summary
private AsyncEventType()

Method Detail

valueOfback to summary
public static AsyncContextImpl.AsyncEventType valueOf(String name)
valuesback to summary
public static AsyncContextImpl.AsyncEventType[] values()
org.glassfish.grizzly.servlet back to summary

private Class AsyncContextImpl.AsyncListenerContext

extends Object
Class Inheritance
  • java.lang.Object
  • org.glassfish.grizzly.servlet.AsyncContextImpl.AsyncListenerContext

Class holding all the information required for invoking an AsyncListener (including the AsyncListener itself).

Field Summary

Modifier and TypeField and Description
private final AsyncListener
private final ServletRequest
private final ServletResponse

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public AsyncListener
public ServletRequest
public ServletResponse
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

listenerback to summary
private final AsyncListener listener
requestback to summary
private final ServletRequest request
responseback to summary
private final ServletResponse response

Constructor Detail

AsyncListenerContextback to summary
public AsyncListenerContext(AsyncListener listener)
AsyncListenerContextback to summary
public AsyncListenerContext(AsyncListener listener, ServletRequest request, ServletResponse response)

Method Detail

getAsyncListenerback to summary
public AsyncListener getAsyncListener()
getRequestback to summary
public ServletRequest getRequest()
getResponseback to summary
public ServletResponse getResponse()
org.glassfish.grizzly.servlet back to summary

private final Class AsyncContextImpl.AsyncPoolThreadFactory

extends Object
implements ThreadFactory
Class Inheritance
  • java.lang.Object
  • org.glassfish.grizzly.servlet.AsyncContextImpl.AsyncPoolThreadFactory
All Implemented Interfaces
java.util.concurrent.ThreadFactory

Field Summary

Modifier and TypeField and Description
private final AtomicInteger
private final ThreadFactory

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Thread
newThread(Runnable r)

Implements java.util.concurrent.ThreadFactory.newThread.

Constructs a new unstarted Thread to run the given runnable.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

counterback to summary
private final AtomicInteger counter
defaultFactoryback to summary
private final ThreadFactory defaultFactory

Constructor Detail

AsyncPoolThreadFactoryback to summary
private AsyncPoolThreadFactory()

Method Detail

newThreadback to summary
public Thread newThread(Runnable r)

Implements java.util.concurrent.ThreadFactory.newThread.

Doc from java.util.concurrent.ThreadFactory.newThread.

Constructs a new unstarted Thread to run the given runnable.

Annotations
@Override
org.glassfish.grizzly.servlet back to summary

pack-priv Class AsyncContextImpl.Handler

extends Object
implements Runnable
Class Inheritance
All Implemented Interfaces
java.lang.Runnable

Field Summary

Modifier and TypeField and Description
private final AsyncContextImpl
private final ApplicationDispatcher
private final HttpServletRequestImpl

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public void
run()

Implements java.lang.Runnable.run.

Runs this operation.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

asyncContextback to summary
private final AsyncContextImpl asyncContext
dispatcherback to summary
private final ApplicationDispatcher dispatcher
origRequestback to summary
private final HttpServletRequestImpl origRequest

Constructor Detail

Handlerback to summary
pack-priv Handler(AsyncContextImpl asyncContext, ApplicationDispatcher dispatcher, HttpServletRequestImpl origRequest)

Method Detail

runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

Annotations
@Override