Class Http2UpgradeProvider

java.lang.Object
io.helidon.webserver.http2.Http2UpgradeProvider
All Implemented Interfaces:
Http1UpgradeProvider<io.helidon.webserver.http2.Http2Config>

public class Http2UpgradeProvider extends Object implements Http1UpgradeProvider<io.helidon.webserver.http2.Http2Config>
ServiceLoader upgrade protocol provider to upgrade from HTTP/1.1 to HTTP/2.
  • Constructor Details

    • Http2UpgradeProvider

      public Http2UpgradeProvider()
      Deprecated.
      to be used solely by ServiceLoader
      Create a new instance with default configuration.
  • Method Details

    • builder

      public static Http2UpgradeProvider.Builder builder()
      Builder to set up this provider.
      Returns:
      a new builder
    • protocolType

      public String protocolType()
      Description copied from interface: Http1UpgradeProvider
      Provider's type.
      Specified by:
      protocolType in interface Http1UpgradeProvider<io.helidon.webserver.http2.Http2Config>
      Returns:
      protocol type (also the type expected in configuration)
    • protocolConfigType

      public Class<io.helidon.webserver.http2.Http2Config> protocolConfigType()
      Description copied from interface: Http1UpgradeProvider
      Type of supported configuration.
      Specified by:
      protocolConfigType in interface Http1UpgradeProvider<io.helidon.webserver.http2.Http2Config>
      Returns:
      protocol config type
    • create

      public Http1Upgrader create(io.helidon.webserver.http2.Http2Config config, ProtocolConfigs configs)
      Description copied from interface: Http1UpgradeProvider
      Creates an instance of HTTP/HTTP/1.1 connection upgrader.
      Specified by:
      create in interface Http1UpgradeProvider<io.helidon.webserver.http2.Http2Config>
      Parameters:
      config - configuration of this protocol
      configs - configuration for possible nested protocols
      Returns:
      new server HTTP/1.1 connection upgrade selector