Package org.eclipse.jetty.server
Class HttpChannelState
java.lang.Object
org.eclipse.jetty.server.HttpChannelState
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
Implementation of AsyncContext interface that holds the state of request-response cycle.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDeprecated.The actions to take as the channel moves from state to state.static enumDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.voidaddListener(AsyncListener listener) Deprecated.voidasyncError(Throwable failure) Deprecated.booleanDeprecated.voidcomplete()Deprecated.booleanDeprecated.voiddispatch(ServletContext context, String path) Deprecated.Deprecated.getAttribute(String name) Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.getState()Deprecated.Deprecated.longDeprecated.handling()Deprecated.booleanhasListener(AsyncListener listener) Deprecated.booleanisAsync()Deprecated.booleanDeprecated.booleanDeprecated.booleanisIdle()Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.Called to signal that content is now available to read.booleanDeprecated.Called to signal that a read has read -1.booleanDeprecated.Called to indicate that more content may be available, but that a handling thread may need to produce (fill/parse) it.booleanDeprecated.Called to signal that the channel is ready for a callback.voidDeprecated.Called to signal async read isReady() has returned false.booleanDeprecated.booleanDeprecated.voidremoveAttribute(String name) Deprecated.voidDeprecated.voidsetAttribute(String name, Object attribute) Deprecated.voidsetTimeout(long ms) Deprecated.voidstartAsync(AsyncContextEvent event) Deprecated.toString()Deprecated.voidupgrade()Deprecated.
-
Method Details
-
getState
Deprecated. -
addListener
Deprecated. -
hasListener
Deprecated. -
isSendError
public boolean isSendError()Deprecated. -
setTimeout
public void setTimeout(long ms) Deprecated. -
getTimeout
public long getTimeout()Deprecated. -
getAsyncContextEvent
Deprecated. -
toString
Deprecated. -
getStatusString
Deprecated. -
commitResponse
public boolean commitResponse()Deprecated. -
partialResponse
public boolean partialResponse()Deprecated. -
completeResponse
public boolean completeResponse()Deprecated. -
isResponseCommitted
public boolean isResponseCommitted()Deprecated. -
isResponseCompleted
public boolean isResponseCompleted()Deprecated. -
abortResponse
public boolean abortResponse()Deprecated. -
handling
Deprecated.- Returns:
- Next handling of the request should proceed
-
startAsync
Deprecated. -
dispatch
Deprecated. -
complete
public void complete()Deprecated. -
asyncError
Deprecated. -
sendError
Deprecated. -
upgrade
public void upgrade()Deprecated. -
isIdle
public boolean isIdle()Deprecated. -
isExpired
public boolean isExpired()Deprecated. -
isInitial
public boolean isInitial()Deprecated. -
isSuspended
public boolean isSuspended()Deprecated. -
isAsyncStarted
public boolean isAsyncStarted()Deprecated. -
isAsync
public boolean isAsync()Deprecated. -
getBaseRequest
Deprecated. -
getHttpChannel
Deprecated. -
getContextHandler
Deprecated. -
getServletResponse
Deprecated. -
getServletResponse
Deprecated. -
getAttribute
Deprecated. -
removeAttribute
Deprecated. -
setAttribute
Deprecated. -
onReadUnready
public void onReadUnready()Deprecated.Called to signal async read isReady() has returned false. This indicates that there is no content available to be consumed and that once the channel enters the ASYNC_WAIT state it will register for read interest by callingHttpChannel.onAsyncWaitForContent()either from this method or from a subsequent call tounhandle(). -
onContentAdded
public boolean onContentAdded()Deprecated.Called to signal that content is now available to read. If the channel is in ASYNC_WAIT state and unready (ie isReady() has returned false), then the state is changed to ASYNC_WOKEN and true is returned.- Returns:
- True IFF the channel was unready and in ASYNC_WAIT state
-
onReadReady
public boolean onReadReady()Deprecated.Called to signal that the channel is ready for a callback. This is similar to callingonReadUnready()followed byonContentAdded(), except that as content is already available, read interest is never set.- Returns:
- true if woken
-
onReadPossible
public boolean onReadPossible()Deprecated.Called to indicate that more content may be available, but that a handling thread may need to produce (fill/parse) it. Typically called by the async read success callback.- Returns:
trueif more content may be available
-
onReadEof
public boolean onReadEof()Deprecated.Called to signal that a read has read -1. Will wake if the read was called while in ASYNC_WAIT state- Returns:
trueif woken
-
onWritePossible
public boolean onWritePossible()Deprecated.
-