Class 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.
    • Method Detail

      • 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.
      • toString

        public java.lang.String toString()
        Deprecated.
        Overrides:
        toString in class java.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
      • 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.
      • 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 calling HttpChannel.onAsyncWaitForContent() either from this method or from a subsequent call to unhandle().
      • 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 calling onReadUnready() followed by onContentAdded(), 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.