Package org.eclipse.jetty.server
Class AsyncContextEvent
- java.lang.Object
-
- javax.servlet.AsyncEvent
-
- org.eclipse.jetty.server.AsyncContextEvent
-
- All Implemented Interfaces:
java.lang.Runnable
public class AsyncContextEvent extends javax.servlet.AsyncEvent implements java.lang.Runnable
-
-
Constructor Summary
Constructors Constructor Description AsyncContextEvent(ContextHandler.Context context, AsyncContextState asyncContext, HttpChannelState state, Request baseRequest, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addThrowable(java.lang.Throwable e)
void
cancelTimeoutTask()
void
completed()
javax.servlet.AsyncContext
getAsyncContext()
ContextHandler.Context
getContext()
javax.servlet.ServletContext
getDispatchContext()
HttpChannelState
getHttpChannelState()
java.lang.String
getPath()
javax.servlet.ServletContext
getServletContext()
javax.servlet.ServletContext
getSuspendedContext()
java.lang.Throwable
getThrowable()
boolean
hasTimeoutTask()
void
run()
void
setDispatchContext(javax.servlet.ServletContext context)
void
setDispatchPath(java.lang.String path)
void
setTimeoutTask(Scheduler.Task task)
-
-
-
Constructor Detail
-
AsyncContextEvent
public AsyncContextEvent(ContextHandler.Context context, AsyncContextState asyncContext, HttpChannelState state, Request baseRequest, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
-
-
Method Detail
-
getSuspendedContext
public javax.servlet.ServletContext getSuspendedContext()
-
getContext
public ContextHandler.Context getContext()
-
getDispatchContext
public javax.servlet.ServletContext getDispatchContext()
-
getServletContext
public javax.servlet.ServletContext getServletContext()
-
getPath
public java.lang.String getPath()
- Returns:
- The path in the context (encoded with possible query string)
-
setTimeoutTask
public void setTimeoutTask(Scheduler.Task task)
-
hasTimeoutTask
public boolean hasTimeoutTask()
-
cancelTimeoutTask
public void cancelTimeoutTask()
-
getAsyncContext
public javax.servlet.AsyncContext getAsyncContext()
- Overrides:
getAsyncContext
in classjavax.servlet.AsyncEvent
-
getThrowable
public java.lang.Throwable getThrowable()
- Overrides:
getThrowable
in classjavax.servlet.AsyncEvent
-
setDispatchContext
public void setDispatchContext(javax.servlet.ServletContext context)
-
setDispatchPath
public void setDispatchPath(java.lang.String path)
- Parameters:
path
- encoded URI
-
completed
public void completed()
-
getHttpChannelState
public HttpChannelState getHttpChannelState()
-
run
public void run()
- Specified by:
run
in interfacejava.lang.Runnable
-
addThrowable
public void addThrowable(java.lang.Throwable e)
-
-