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 AsyncContext
public void addListener(AsyncListener listener, ServletRequest request, ServletResponse response)
addListener
in interface AsyncContext
public void setTimeout(long ms)
setTimeout
in interface AsyncContext
public long getTimeout()
getTimeout
in interface AsyncContext
public 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 AsyncContext
public boolean isDispatched()
Continuation#isDispatched()
protected void expired()
public void complete()
complete
in interface AsyncContext
public <T extends AsyncListener> T createListener(Class<T> clazz) throws ServletException
createListener
in interface AsyncContext
ServletException
protected 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 AsyncContext
public void dispatch(String path)
dispatch
in interface AsyncContext
public Request getBaseRequest()
public ServletRequest getRequest()
getRequest
in interface AsyncContext
public ServletResponse getResponse()
getResponse
in interface AsyncContext
public void start(Runnable run)
start
in interface AsyncContext
public boolean hasOriginalRequestAndResponse()
hasOriginalRequestAndResponse
in interface AsyncContext
public ContextHandler getContextHandler()
public ServletResponse getServletResponse()
Continuation.getServletResponse()
public void removeAttribute(String name)
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.