Package org.eclipse.jetty.server
Class AsyncContextState
- java.lang.Object
-
- org.eclipse.jetty.server.AsyncContextState
-
- All Implemented Interfaces:
AsyncContext
public class AsyncContextState extends java.lang.Object implements AsyncContext
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AsyncContextState.WrappedAsyncListener
-
Field Summary
-
Fields inherited from interface javax.servlet.AsyncContext
ASYNC_CONTEXT_PATH, ASYNC_PATH_INFO, ASYNC_QUERY_STRING, ASYNC_REQUEST_URI, ASYNC_SERVLET_PATH
-
-
Constructor Summary
Constructors Constructor Description AsyncContextState(HttpChannelState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(AsyncListener listener)
void
addListener(AsyncListener listener, ServletRequest request, ServletResponse response)
void
complete()
<T extends AsyncListener>
TcreateListener(java.lang.Class<T> clazz)
void
dispatch()
void
dispatch(java.lang.String path)
void
dispatch(ServletContext context, java.lang.String path)
HttpChannel
getHttpChannel()
HttpChannelState
getHttpChannelState()
ServletRequest
getRequest()
ServletResponse
getResponse()
long
getTimeout()
Get timeout in milliseconds.boolean
hasOriginalRequestAndResponse()
void
reset()
void
setTimeout(long arg0)
Set timeout in milliseconds.void
start(java.lang.Runnable task)
-
-
-
Constructor Detail
-
AsyncContextState
public AsyncContextState(HttpChannelState state)
-
-
Method Detail
-
getHttpChannel
public HttpChannel getHttpChannel()
-
addListener
public void addListener(AsyncListener listener, ServletRequest request, ServletResponse response)
- Specified by:
addListener
in interfaceAsyncContext
-
addListener
public void addListener(AsyncListener listener)
- Specified by:
addListener
in interfaceAsyncContext
-
complete
public void complete()
- Specified by:
complete
in interfaceAsyncContext
-
createListener
public <T extends AsyncListener> T createListener(java.lang.Class<T> clazz) throws ServletException
- Specified by:
createListener
in interfaceAsyncContext
- Throws:
ServletException
-
dispatch
public void dispatch()
- Specified by:
dispatch
in interfaceAsyncContext
-
dispatch
public void dispatch(java.lang.String path)
- Specified by:
dispatch
in interfaceAsyncContext
-
dispatch
public void dispatch(ServletContext context, java.lang.String path)
- Specified by:
dispatch
in interfaceAsyncContext
-
getRequest
public ServletRequest getRequest()
- Specified by:
getRequest
in interfaceAsyncContext
-
getResponse
public ServletResponse getResponse()
- Specified by:
getResponse
in interfaceAsyncContext
-
getTimeout
public long getTimeout()
Description copied from interface:AsyncContext
Get timeout in milliseconds. 0 or less indicates no timeout.- Specified by:
getTimeout
in interfaceAsyncContext
-
hasOriginalRequestAndResponse
public boolean hasOriginalRequestAndResponse()
- Specified by:
hasOriginalRequestAndResponse
in interfaceAsyncContext
-
setTimeout
public void setTimeout(long arg0)
Description copied from interface:AsyncContext
Set timeout in milliseconds. 0 or less indicates no timeout.- Specified by:
setTimeout
in interfaceAsyncContext
-
start
public void start(java.lang.Runnable task)
- Specified by:
start
in interfaceAsyncContext
-
reset
public void reset()
-
getHttpChannelState
public HttpChannelState getHttpChannelState()
-
-