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 |
isInitial() |
boolean |
isSuspended() |
void |
onReadPossible() |
void |
onWritePossible() |
protected void |
recycle() |
void |
removeAttribute(String name) |
protected void |
scheduleDispatch() |
protected void |
scheduleTimeout() |
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.
|
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()
protected void scheduleDispatch()
protected void scheduleTimeout()
protected void cancelTimeout()
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 onReadPossible()
public void onWritePossible()
Copyright © 1995-2014 Webtide. All Rights Reserved.