Package org.eclipse.jetty.server
Class AsyncContextState
- java.lang.Object
-
- org.eclipse.jetty.server.AsyncContextState
-
- All Implemented Interfaces:
AsyncContext
public class AsyncContextState extends Object implements AsyncContext
-
-
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 voidaddListener(AsyncListener listener)voidaddListener(AsyncListener listener, ServletRequest request, ServletResponse response)voidcomplete()<T extends AsyncListener>
TcreateListener(Class<T> clazz)voiddispatch()voiddispatch(String path)voiddispatch(ServletContext context, String path)HttpChannelgetHttpChannel()HttpChannelStategetHttpChannelState()ServletRequestgetRequest()ServletResponsegetResponse()longgetTimeout()booleanhasOriginalRequestAndResponse()voidreset()voidsetTimeout(long arg0)voidstart(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:
addListenerin interfaceAsyncContext
-
addListener
public void addListener(AsyncListener listener)
- Specified by:
addListenerin interfaceAsyncContext
-
complete
public void complete()
- Specified by:
completein interfaceAsyncContext
-
createListener
public <T extends AsyncListener> T createListener(Class<T> clazz) throws ServletException
- Specified by:
createListenerin interfaceAsyncContext- Throws:
ServletException
-
dispatch
public void dispatch()
- Specified by:
dispatchin interfaceAsyncContext
-
dispatch
public void dispatch(String path)
- Specified by:
dispatchin interfaceAsyncContext
-
dispatch
public void dispatch(ServletContext context, String path)
- Specified by:
dispatchin interfaceAsyncContext
-
getRequest
public ServletRequest getRequest()
- Specified by:
getRequestin interfaceAsyncContext
-
getResponse
public ServletResponse getResponse()
- Specified by:
getResponsein interfaceAsyncContext
-
getTimeout
public long getTimeout()
- Specified by:
getTimeoutin interfaceAsyncContext
-
hasOriginalRequestAndResponse
public boolean hasOriginalRequestAndResponse()
- Specified by:
hasOriginalRequestAndResponsein interfaceAsyncContext
-
setTimeout
public void setTimeout(long arg0)
- Specified by:
setTimeoutin interfaceAsyncContext
-
start
public void start(Runnable task)
- Specified by:
startin interfaceAsyncContext
-
reset
public void reset()
-
getHttpChannelState
public HttpChannelState getHttpChannelState()
-
-