Class HttpChannelOverHTTP3

java.lang.Object
org.eclipse.jetty.server.HttpChannel
org.eclipse.jetty.http3.server.internal.HttpChannelOverHTTP3
All Implemented Interfaces:
Runnable, HttpOutput.Interceptor

public class HttpChannelOverHTTP3 extends HttpChannel
  • Constructor Details

  • Method Details

    • getHttpTransport

      public HttpTransportOverHTTP3 getHttpTransport()
      Overrides:
      getHttpTransport in class HttpChannel
    • setIdleTimeout

      public void setIdleTimeout(long timeoutMs)
      Description copied from class: HttpChannel
      Set the idle timeout.

      This is implemented as a call to EndPoint.setIdleTimeout(long), but may be overridden by channels that have timeouts different from their connections.

      Overrides:
      setIdleTimeout in class HttpChannel
      Parameters:
      timeoutMs - the idle timeout in milliseconds
    • isExpecting100Continue

      public boolean isExpecting100Continue()
      Overrides:
      isExpecting100Continue in class HttpChannel
    • continue100

      public void continue100(int available) throws IOException
      Description copied from class: HttpChannel
      If the associated response has the Expect header set to 100 Continue, then accessing the input stream indicates that the handler/servlet is ready for the request body and thus a 100 Continue response is sent.
      Overrides:
      continue100 in class HttpChannel
      Parameters:
      available - estimate of the number of bytes that are available
      Throws:
      IOException - if the InputStream cannot be created
    • onRequest

      public Runnable onRequest(HeadersFrame frame)
    • commit

      protected void commit(MetaData.Response info)
      Overrides:
      commit in class HttpChannel
    • onDataAvailable

      public Runnable onDataAvailable()
    • onTrailer

      public Runnable onTrailer(HeadersFrame frame)
    • onIdleTimeout

      public boolean onIdleTimeout(Throwable failure, Consumer<Runnable> consumer)
    • onFailure

      public Runnable onFailure(Throwable failure)
    • needContent

      public boolean needContent()
      Description copied from class: HttpChannel
      Notify the channel that content is needed. If some content is immediately available, true is returned and HttpChannel.produceContent() has to be called and will return a non-null object. If no content is immediately available, an attempt to produce content must be made; if new content has been produced, true is returned; otherwise HttpInput.onContentProducible() is called once some content arrives and HttpChannel.produceContent() can be called without returning null. If a failure happens, then HttpInput.onContentProducible() will be called and an error content will return the error on the next call to HttpChannel.produceContent().
      Specified by:
      needContent in class HttpChannel
      Returns:
      true if content is immediately available.
    • produceContent

      public HttpInput.Content produceContent()
      Description copied from class: HttpChannel
      Produce a HttpInput.Content object with data currently stored within the channel. The produced content can be special (meaning calling HttpInput.Content.isSpecial() returns true) if the channel reached a special state, like EOF or an error. Once a special content has been returned, all subsequent calls to this method will always return a special content of the same kind and HttpChannel.needContent() will always return true. The returned content is "raw", i.e.: not decoded.
      Specified by:
      produceContent in class HttpChannel
      Returns:
      a HttpInput.Content object if one is immediately available without blocking, null otherwise.
    • failAllContent

      public boolean failAllContent(Throwable failure)
      Description copied from class: HttpChannel
      Fail all content that is currently stored within the channel.
      Specified by:
      failAllContent in class HttpChannel
      Parameters:
      failure - the failure to fail the content with.
      Returns:
      true if EOF was reached while failing all content, false otherwise.
    • failed

      public boolean failed(Throwable failure)
      Description copied from class: HttpChannel
      Fail the channel's input.
      Specified by:
      failed in class HttpChannel
      Parameters:
      failure - the failure.
      Returns:
      true if the channel needs to be rescheduled.
    • eof

      protected boolean eof()
      Description copied from class: HttpChannel
      Mark the channel's input as EOF.
      Specified by:
      eof in class HttpChannel
      Returns:
      true if the channel needs to be rescheduled.