Package org.eclipse.jetty.server
Class AsyncContextState
- java.lang.Object
-
- org.eclipse.jetty.server.AsyncContextState
-
- All Implemented Interfaces:
javax.servlet.AsyncContext
public class AsyncContextState extends java.lang.Object implements javax.servlet.AsyncContext
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AsyncContextState.WrappedAsyncListener
-
Constructor Summary
Constructors Constructor Description AsyncContextState(HttpChannelState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(javax.servlet.AsyncListener listener)
void
addListener(javax.servlet.AsyncListener listener, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
void
complete()
<T extends javax.servlet.AsyncListener>
TcreateListener(java.lang.Class<T> clazz)
void
dispatch()
void
dispatch(java.lang.String path)
void
dispatch(javax.servlet.ServletContext context, java.lang.String path)
HttpChannel
getHttpChannel()
HttpChannelState
getHttpChannelState()
javax.servlet.ServletRequest
getRequest()
javax.servlet.ServletResponse
getResponse()
long
getTimeout()
boolean
hasOriginalRequestAndResponse()
void
reset()
void
setTimeout(long arg0)
void
start(java.lang.Runnable task)
-
-
-
Constructor Detail
-
AsyncContextState
public AsyncContextState(HttpChannelState state)
-
-
Method Detail
-
getHttpChannel
public HttpChannel getHttpChannel()
-
addListener
public void addListener(javax.servlet.AsyncListener listener, javax.servlet.ServletRequest request, javax.servlet.ServletResponse response)
- Specified by:
addListener
in interfacejavax.servlet.AsyncContext
-
addListener
public void addListener(javax.servlet.AsyncListener listener)
- Specified by:
addListener
in interfacejavax.servlet.AsyncContext
-
complete
public void complete()
- Specified by:
complete
in interfacejavax.servlet.AsyncContext
-
createListener
public <T extends javax.servlet.AsyncListener> T createListener(java.lang.Class<T> clazz) throws javax.servlet.ServletException
- Specified by:
createListener
in interfacejavax.servlet.AsyncContext
- Throws:
javax.servlet.ServletException
-
dispatch
public void dispatch()
- Specified by:
dispatch
in interfacejavax.servlet.AsyncContext
-
dispatch
public void dispatch(java.lang.String path)
- Specified by:
dispatch
in interfacejavax.servlet.AsyncContext
-
dispatch
public void dispatch(javax.servlet.ServletContext context, java.lang.String path)
- Specified by:
dispatch
in interfacejavax.servlet.AsyncContext
-
getRequest
public javax.servlet.ServletRequest getRequest()
- Specified by:
getRequest
in interfacejavax.servlet.AsyncContext
-
getResponse
public javax.servlet.ServletResponse getResponse()
- Specified by:
getResponse
in interfacejavax.servlet.AsyncContext
-
getTimeout
public long getTimeout()
- Specified by:
getTimeout
in interfacejavax.servlet.AsyncContext
-
hasOriginalRequestAndResponse
public boolean hasOriginalRequestAndResponse()
- Specified by:
hasOriginalRequestAndResponse
in interfacejavax.servlet.AsyncContext
-
setTimeout
public void setTimeout(long arg0)
- Specified by:
setTimeout
in interfacejavax.servlet.AsyncContext
-
start
public void start(java.lang.Runnable task)
- Specified by:
start
in interfacejavax.servlet.AsyncContext
-
reset
public void reset()
-
getHttpChannelState
public HttpChannelState getHttpChannelState()
-
-