public class AsyncContextState extends Object implements AsyncContext
ASYNC_CONTEXT_PATH, ASYNC_PATH_INFO, ASYNC_QUERY_STRING, ASYNC_REQUEST_URI, ASYNC_SERVLET_PATH
Constructor and Description |
---|
AsyncContextState(HttpChannelState state) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(AsyncListener listener) |
void |
addListener(AsyncListener listener,
ServletRequest request,
ServletResponse response) |
void |
complete() |
<T extends AsyncListener> |
createListener(Class<T> clazz) |
void |
dispatch() |
void |
dispatch(ServletContext context,
String path) |
void |
dispatch(String path) |
HttpChannelState |
getHttpChannelState() |
ServletRequest |
getRequest() |
ServletResponse |
getResponse() |
long |
getTimeout() |
boolean |
hasOriginalRequestAndResponse() |
void |
reset() |
void |
setTimeout(long arg0) |
void |
start(Runnable task) |
public AsyncContextState(HttpChannelState state)
public void addListener(AsyncListener listener, ServletRequest request, ServletResponse response)
addListener
in interface AsyncContext
public void addListener(AsyncListener listener)
addListener
in interface AsyncContext
public void complete()
complete
in interface AsyncContext
public <T extends AsyncListener> T createListener(Class<T> clazz) throws ServletException
createListener
in interface AsyncContext
ServletException
public void dispatch()
dispatch
in interface AsyncContext
public void dispatch(String path)
dispatch
in interface AsyncContext
public void dispatch(ServletContext context, String path)
dispatch
in interface AsyncContext
public ServletRequest getRequest()
getRequest
in interface AsyncContext
public ServletResponse getResponse()
getResponse
in interface AsyncContext
public long getTimeout()
getTimeout
in interface AsyncContext
public boolean hasOriginalRequestAndResponse()
hasOriginalRequestAndResponse
in interface AsyncContext
public void setTimeout(long arg0)
setTimeout
in interface AsyncContext
public void start(Runnable task)
start
in interface AsyncContext
public void reset()
public HttpChannelState getHttpChannelState()
Copyright © 1995-2015 Webtide. All Rights Reserved.