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 livecycle
|
Modifier | Constructor and Description |
---|---|
protected |
HttpChannelState(HttpChannel channel) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(javax.servlet.AsyncListener listener) |
protected void |
cancelTimeout() |
void |
complete() |
protected void |
completed() |
void |
dispatch(javax.servlet.ServletContext context,
String path) |
protected void |
error(Throwable th) |
void |
errorComplete() |
protected void |
expired() |
AsyncContextEvent |
getAsyncContextEvent() |
Object |
getAttribute(String name) |
Request |
getBaseRequest() |
ContextHandler |
getContextHandler() |
HttpChannel |
getHttpChannel() |
javax.servlet.ServletResponse |
getServletResponse() |
HttpChannelState.State |
getState() |
String |
getStatusString() |
long |
getTimeout() |
protected HttpChannelState.Action |
handling() |
boolean |
isAsync() |
boolean |
isAsyncStarted() |
boolean |
isExpired() |
boolean |
isIdle() |
boolean |
isInitial() |
boolean |
isReadPossible() |
boolean |
isSuspended() |
boolean |
onReadPossible()
Called to signal that content is now available to read.
|
boolean |
onReadReady()
Called to signal that the channel is ready for a callback.
|
void |
onReadUnready()
Called to signal async read isReady() has returned false.
|
boolean |
onWritePossible() |
protected void |
recycle() |
void |
removeAttribute(String name) |
protected void |
scheduleDispatch() |
protected void |
scheduleTimeout(AsyncContextEvent event) |
void |
setAttribute(String name,
Object attribute) |
void |
setTimeout(long ms) |
void |
startAsync(AsyncContextEvent event) |
String |
toString() |
protected HttpChannelState.Action |
unhandle()
Signal that the HttpConnection has finished handling the request.
|
void |
upgrade() |
protected HttpChannelState(HttpChannel channel)
public HttpChannelState.State getState()
public void addListener(javax.servlet.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(javax.servlet.ServletContext context, String path)
protected void expired()
public void complete()
public void errorComplete()
protected void completed()
protected void recycle()
public void upgrade()
protected void scheduleDispatch()
protected void scheduleTimeout(AsyncContextEvent event)
protected void cancelTimeout()
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 javax.servlet.ServletResponse getServletResponse()
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-2015 Webtide. All Rights Reserved.