public class HttpChannelState extends Object
Modifier and Type | Class and Description |
---|---|
static class |
HttpChannelState.Action
The actions to take as the channel moves from state to state.
|
static class |
HttpChannelState.Async
The state of the servlet async API.
|
static class |
HttpChannelState.State
The dispatched state of the HttpChannel, used to control the overall lifecycle
|
Modifier | Constructor and Description |
---|---|
protected |
HttpChannelState(HttpChannel channel) |
protected HttpChannelState(HttpChannel channel)
public HttpChannelState.State getState()
public void addListener(AsyncListener listener)
public void setTimeout(long ms)
public long getTimeout()
public AsyncContextEvent getAsyncContextEvent()
public String getStatusString()
protected HttpChannelState.Action handling()
public void startAsync(AsyncContextEvent event)
protected void error(Throwable th)
protected HttpChannelState.Action unhandle()
public void dispatch(ServletContext context, String path)
protected void onTimeout()
public void complete()
public void errorComplete()
protected void onError()
protected void onComplete()
protected void recycle()
public void upgrade()
protected void scheduleDispatch()
protected void scheduleTimeout(AsyncContextEvent event)
protected void cancelTimeout()
protected void cancelTimeout(AsyncContextEvent event)
public boolean isIdle()
public boolean isExpired()
public boolean isInitial()
public boolean isSuspended()
public boolean isAsyncStarted()
public boolean isAsync()
public Request getBaseRequest()
public HttpChannel getHttpChannel()
public ContextHandler getContextHandler()
public ServletResponse getServletResponse()
public ServletResponse getServletResponse(AsyncContextEvent event)
public void removeAttribute(String name)
public void onReadUnready()
HttpChannel.asyncReadFillInterested()
either from this method or from a subsequent call to unhandle()
.public boolean onReadPossible()
public boolean onReadReady()
onReadUnready()
followed by
onReadPossible()
, except that as content is already
available, read interest is never set.public boolean isReadPossible()
public boolean onWritePossible()
Copyright © 1995-2016 Webtide. All Rights Reserved.