Class HTTP2ServerConnection.ServerHttpChannelOverHTTP2

java.lang.Object
org.eclipse.jetty.server.HttpChannel
org.eclipse.jetty.http2.server.HttpChannelOverHTTP2
org.eclipse.jetty.http2.server.HTTP2ServerConnection.ServerHttpChannelOverHTTP2
All Implemented Interfaces:
Closeable, AutoCloseable, Runnable, HTTP2Channel.Server, WriteFlusher.Listener, HttpOutput.Interceptor
Enclosing class:
HTTP2ServerConnection

protected class HTTP2ServerConnection.ServerHttpChannelOverHTTP2 extends HttpChannelOverHTTP2 implements Closeable
  • Constructor Details

  • Method Details

    • checkAndPrepareUpgrade

      protected boolean checkAndPrepareUpgrade()
      Description copied from class: HttpChannel

      Checks whether the processing of the request resulted in an upgrade, and if so performs upgrade preparation steps before the upgrade response is sent back to the client.

      This avoids a race where the server is unprepared if the client sends data immediately after having received the upgrade response.

      Overrides:
      checkAndPrepareUpgrade in class HttpChannel
      Returns:
      true if the channel is not complete and more processing is required, typically because sendError has been called.
    • onCompleted

      public void onCompleted()
      Overrides:
      onCompleted in class HttpChannel
    • recycle

      public void recycle()
      Overrides:
      recycle in class HttpChannelOverHTTP2
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class HttpChannelOverHTTP2