Package org.eclipse.jetty.server
Class HttpChannelState
- java.lang.Object
 - 
- org.eclipse.jetty.server.HttpChannelState
 
 
- 
@Deprecated(since="2021-05-27") public class HttpChannelState extends java.lang.ObjectDeprecated.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 Classes Modifier and Type Class Description static classHttpChannelState.ActionDeprecated.The actions to take as the channel moves from state to state.static classHttpChannelState.StateDeprecated. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanabortResponse()Deprecated.voidaddListener(AsyncListener listener)Deprecated.voidasyncError(java.lang.Throwable failure)Deprecated.booleancommitResponse()Deprecated.voidcomplete()Deprecated.booleancompleteResponse()Deprecated.voiddispatch(ServletContext context, java.lang.String path)Deprecated.AsyncContextEventgetAsyncContextEvent()Deprecated.java.lang.ObjectgetAttribute(java.lang.String name)Deprecated.RequestgetBaseRequest()Deprecated.ContextHandlergetContextHandler()Deprecated.HttpChannelgetHttpChannel()Deprecated.ServletResponsegetServletResponse()Deprecated.ServletResponsegetServletResponse(AsyncContextEvent event)Deprecated.HttpChannelState.StategetState()Deprecated.java.lang.StringgetStatusString()Deprecated.longgetTimeout()Deprecated.HttpChannelState.Actionhandling()Deprecated.booleanhasListener(AsyncListener listener)Deprecated.booleanisAsync()Deprecated.booleanisAsyncStarted()Deprecated.booleanisExpired()Deprecated.booleanisIdle()Deprecated.booleanisInitial()Deprecated.booleanisResponseCommitted()Deprecated.booleanisResponseCompleted()Deprecated.booleanisSendError()Deprecated.booleanisSuspended()Deprecated.booleanonContentAdded()Deprecated.Called to signal that content is now available to read.booleanonReadEof()Deprecated.Called to signal that a read has read -1.booleanonReadPossible()Deprecated.Called to indicate that more content may be available, but that a handling thread may need to produce (fill/parse) it.booleanonReadReady()Deprecated.Called to signal that the channel is ready for a callback.voidonReadUnready()Deprecated.Called to signal async read isReady() has returned false.booleanonWritePossible()Deprecated.booleanpartialResponse()Deprecated.voidremoveAttribute(java.lang.String name)Deprecated.voidsendError(int code, java.lang.String message)Deprecated.voidsetAttribute(java.lang.String name, java.lang.Object attribute)Deprecated.voidsetTimeout(long ms)Deprecated.voidstartAsync(AsyncContextEvent event)Deprecated.java.lang.StringtoString()Deprecated.voidupgrade()Deprecated. 
 - 
 
- 
- 
Method Detail
- 
getState
public HttpChannelState.State getState()
Deprecated. 
- 
addListener
public void addListener(AsyncListener listener)
Deprecated. 
- 
hasListener
public boolean hasListener(AsyncListener listener)
Deprecated. 
- 
isSendError
public boolean isSendError()
Deprecated. 
- 
setTimeout
public void setTimeout(long ms)
Deprecated. 
- 
getTimeout
public long getTimeout()
Deprecated. 
- 
getAsyncContextEvent
public AsyncContextEvent getAsyncContextEvent()
Deprecated. 
- 
toString
public java.lang.String toString()
Deprecated.- Overrides:
 toStringin classjava.lang.Object
 
- 
getStatusString
public java.lang.String 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
public HttpChannelState.Action handling()
Deprecated.- Returns:
 - Next handling of the request should proceed
 
 
- 
startAsync
public void startAsync(AsyncContextEvent event)
Deprecated. 
- 
dispatch
public void dispatch(ServletContext context, java.lang.String path)
Deprecated. 
- 
complete
public void complete()
Deprecated. 
- 
asyncError
public void asyncError(java.lang.Throwable failure)
Deprecated. 
- 
sendError
public void sendError(int code, java.lang.String message)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
public Request getBaseRequest()
Deprecated. 
- 
getHttpChannel
public HttpChannel getHttpChannel()
Deprecated. 
- 
getContextHandler
public ContextHandler getContextHandler()
Deprecated. 
- 
getServletResponse
public ServletResponse getServletResponse()
Deprecated. 
- 
getServletResponse
public ServletResponse getServletResponse(AsyncContextEvent event)
Deprecated. 
- 
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
Deprecated. 
- 
removeAttribute
public void removeAttribute(java.lang.String name)
Deprecated. 
- 
setAttribute
public void setAttribute(java.lang.String name, java.lang.Object attribute)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. 
 - 
 
 -