public class HttpChannelState extends Object implements AsyncContext
| STATE | ACTION | |||||
|---|---|---|---|---|---|---|
| handling() | startAsync() | unhandle() | dispatch() | complete() | completed() | |
| IDLE: | DISPATCHED | COMPLETECALLED?? | ||||
| DISPATCHED: | ASYNCSTARTED | COMPLETING | ||||
| ASYNCSTARTED: | ASYNCWAIT | REDISPATCHING | COMPLETECALLED | |||
| REDISPATCHING: | REDISPATCHED | |||||
| ASYNCWAIT: | REDISPATCH | COMPLETECALLED | ||||
| REDISPATCH: | REDISPATCHED | |||||
| REDISPATCHED: | ASYNCSTARTED | COMPLETING | ||||
| COMPLETECALLED: | COMPLETING | COMPLETING | ||||
| COMPLETING: | COMPLETING | COMPLETED | ||||
| COMPLETED: | ||||||
| Modifier and Type | Class and Description |
|---|---|
class |
HttpChannelState.AsyncEventState |
class |
HttpChannelState.AsyncTimeout |
static class |
HttpChannelState.State |
ASYNC_CONTEXT_PATH, ASYNC_PATH_INFO, ASYNC_QUERY_STRING, ASYNC_REQUEST_URI, ASYNC_SERVLET_PATH| Modifier | Constructor and Description |
|---|---|
protected |
HttpChannelState(HttpChannel<?> channel) |
protected HttpChannelState(HttpChannel<?> channel)
public HttpChannelState.State getState()
public void addListener(AsyncListener listener)
addListener in interface AsyncContextpublic void addListener(AsyncListener listener, ServletRequest request, ServletResponse response)
addListener in interface AsyncContextpublic void setTimeout(long ms)
setTimeout in interface AsyncContextpublic long getTimeout()
getTimeout in interface AsyncContextpublic HttpChannelState.AsyncEventState getAsyncEventState()
public String getStatusString()
protected boolean handling()
public void startAsync()
public void startAsync(ServletContext context, ServletRequest request, ServletResponse response)
protected void error(Throwable th)
protected boolean unhandle()
public void dispatch()
dispatch in interface AsyncContextpublic boolean isDispatched()
Continuation#isDispatched()protected void expired()
public void complete()
complete in interface AsyncContextpublic <T extends AsyncListener> T createListener(Class<T> clazz) throws ServletException
createListener in interface AsyncContextServletExceptionprotected void completed()
protected void recycle()
public void cancel()
protected void scheduleDispatch()
protected void scheduleTimeout()
protected void cancelTimeout()
public boolean isInitial()
public boolean isSuspended()
public boolean isAsync()
public void dispatch(ServletContext context, String path)
dispatch in interface AsyncContextpublic void dispatch(String path)
dispatch in interface AsyncContextpublic Request getBaseRequest()
public ServletRequest getRequest()
getRequest in interface AsyncContextpublic ServletResponse getResponse()
getResponse in interface AsyncContextpublic void start(Runnable run)
start in interface AsyncContextpublic boolean hasOriginalRequestAndResponse()
hasOriginalRequestAndResponse in interface AsyncContextpublic ContextHandler getContextHandler()
public ServletResponse getServletResponse()
Continuation.getServletResponse()public void removeAttribute(String name)
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.