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.Object
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 Classes Modifier and Type Class Description static class
HttpChannelState.Action
Deprecated.The actions to take as the channel moves from state to state.static class
HttpChannelState.State
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
abortResponse()
Deprecated.void
addListener(AsyncListener listener)
Deprecated.void
asyncError(java.lang.Throwable failure)
Deprecated.boolean
commitResponse()
Deprecated.void
complete()
Deprecated.boolean
completeResponse()
Deprecated.void
dispatch(ServletContext context, java.lang.String path)
Deprecated.AsyncContextEvent
getAsyncContextEvent()
Deprecated.java.lang.Object
getAttribute(java.lang.String name)
Deprecated.Request
getBaseRequest()
Deprecated.ContextHandler
getContextHandler()
Deprecated.HttpChannel
getHttpChannel()
Deprecated.ServletResponse
getServletResponse()
Deprecated.ServletResponse
getServletResponse(AsyncContextEvent event)
Deprecated.HttpChannelState.State
getState()
Deprecated.java.lang.String
getStatusString()
Deprecated.long
getTimeout()
Deprecated.HttpChannelState.Action
handling()
Deprecated.boolean
hasListener(AsyncListener listener)
Deprecated.boolean
isAsync()
Deprecated.boolean
isAsyncStarted()
Deprecated.boolean
isExpired()
Deprecated.boolean
isIdle()
Deprecated.boolean
isInitial()
Deprecated.boolean
isResponseCommitted()
Deprecated.boolean
isResponseCompleted()
Deprecated.boolean
isSendError()
Deprecated.boolean
isSuspended()
Deprecated.boolean
onContentAdded()
Deprecated.Called to signal that content is now available to read.boolean
onReadEof()
Deprecated.Called to signal that a read has read -1.boolean
onReadPossible()
Deprecated.Called to indicate that more content may be available, but that a handling thread may need to produce (fill/parse) it.boolean
onReadReady()
Deprecated.Called to signal that the channel is ready for a callback.void
onReadUnready()
Deprecated.Called to signal async read isReady() has returned false.boolean
onWritePossible()
Deprecated.boolean
partialResponse()
Deprecated.void
removeAttribute(java.lang.String name)
Deprecated.void
sendError(int code, java.lang.String message)
Deprecated.void
setAttribute(java.lang.String name, java.lang.Object attribute)
Deprecated.void
setTimeout(long ms)
Deprecated.void
startAsync(AsyncContextEvent event)
Deprecated.java.lang.String
toString()
Deprecated.void
upgrade()
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:
toString
in 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:
true
if 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:
true
if woken
-
onWritePossible
public boolean onWritePossible()
Deprecated.
-
-