Top Fields Constructors Methods
org.eclipse.jetty.ee10.servlet

public Class AsyncContextEvent

extends AsyncEvent
implements Runnable
Class Inheritance
All Implemented Interfaces
java.lang.Runnable
Imports
jakarta.servlet.AsyncContext, .AsyncEvent, .ServletContext, .ServletRequest, .ServletResponse, jakarta.servlet.http.HttpServletRequest, org.eclipse.jetty.http.HttpURI, org.eclipse.jetty.server.handler.ContextHandler, org.eclipse.jetty.util.thread.Scheduler

Field Summary

Modifier and TypeField and Description
private final AsyncContextState
private final HttpURI
private final ContextHandler.ScopedContext
private ServletContext
private String
private final ServletContext
private final ServletChannelState
private Throwable
private volatile Scheduler.Task

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
public AsyncContext
getAsyncContext()

Overrides jakarta.servlet.AsyncEvent.getAsyncContext.

Gets the AsyncContext from this AsyncEvent.

public HttpURI
public ContextHandler.ScopedContext
public ServletContext
public String
getDispatchPath()

Returns: The path in the context (encoded with possible query string)

public ServletContext
public ServletChannelState
public ServletContext
public Throwable
getThrowable()

Overrides jakarta.servlet.AsyncEvent.getThrowable.

Gets the Throwable from this AsyncEvent.

public boolean
public void
run()

Implements java.lang.Runnable.run.

Runs this operation.

public void
public void
setDispatchPath(String
encoded URI
path
)

Set encoded URI.

public void
Inherited from jakarta.servlet.AsyncEvent:
getSuppliedRequestgetSuppliedResponse

Field Detail

_asyncContextback to summary
private final AsyncContextState _asyncContext
_baseURIback to summary
private final HttpURI _baseURI
_contextback to summary
private final ContextHandler.ScopedContext _context
_dispatchContextback to summary
private ServletContext _dispatchContext
_dispatchPathback to summary
private String _dispatchPath
_servletContextback to summary
private final ServletContext _servletContext
_stateback to summary
private final ServletChannelState _state
_throwableback to summary
private Throwable _throwable
_timeoutTaskback to summary
private volatile Scheduler.Task _timeoutTask

Constructor Detail

AsyncContextEventback to summary
public AsyncContextEvent(ContextHandler.ScopedContext context, AsyncContextState asyncContext, ServletChannelState state, ServletRequest request, ServletResponse response)

Method Detail

addThrowableback to summary
public void addThrowable(Throwable e)
cancelTimeoutTaskback to summary
public void cancelTimeoutTask()
completedback to summary
public void completed()
getAsyncContextback to summary
public AsyncContext getAsyncContext()

Overrides jakarta.servlet.AsyncEvent.getAsyncContext.

Doc from jakarta.servlet.AsyncEvent.getAsyncContext.

Gets the AsyncContext from this AsyncEvent.

Returns:AsyncContext

the AsyncContext that was used to initialize this AsyncEvent

Annotations
@Override
getBaseURIback to summary
public HttpURI getBaseURI()
getContextback to summary
public ContextHandler.ScopedContext getContext()
getDispatchContextback to summary
public ServletContext getDispatchContext()
getDispatchPathback to summary
public String getDispatchPath()
Returns:String

The path in the context (encoded with possible query string)

getServletContextback to summary
public ServletContext getServletContext()
getServletRequestStateback to summary
public ServletChannelState getServletRequestState()
getSuspendedContextback to summary
public ServletContext getSuspendedContext()
getThrowableback to summary
public Throwable getThrowable()

Overrides jakarta.servlet.AsyncEvent.getThrowable.

Doc from jakarta.servlet.AsyncEvent.getThrowable.

Gets the Throwable from this AsyncEvent.

Returns:Throwable

the Throwable that was used to initialize this AsyncEvent, or null if this AsyncEvent was initialized without any Throwable

Annotations
@Override
hasTimeoutTaskback to summary
public boolean hasTimeoutTask()
runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

Annotations
@Override
setDispatchContextback to summary
public void setDispatchContext(ServletContext context)
setDispatchPathback to summary
public void setDispatchPath(String path)

Set encoded URI.

Parameters
path:String

encoded URI

setTimeoutTaskback to summary
public void setTimeoutTask(Scheduler.Task task)