Class HttpChannelState

java.lang.Object
org.eclipse.jetty.server.HttpChannelState

@Deprecated(since="2021-05-27") public class HttpChannelState extends 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 Details

    • 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 String toString()
      Deprecated.
      Overrides:
      toString in class Object
    • getStatusString

      public 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, String path)
      Deprecated.
    • complete

      public void complete()
      Deprecated.
    • asyncError

      public void asyncError(Throwable failure)
      Deprecated.
    • sendError

      public void sendError(int code, 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 Object getAttribute(String name)
      Deprecated.
    • removeAttribute

      public void removeAttribute(String name)
      Deprecated.
    • setAttribute

      public void setAttribute(String name, 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.