Class Http2UpgradeProvider.Builder
java.lang.Object
io.helidon.webserver.http2.Http2UpgradeProvider.Builder
- All Implemented Interfaces:
Builder<Http2UpgradeProvider.Builder, Http2UpgradeProvider>, Supplier<Http2UpgradeProvider>
- Enclosing class:
Http2UpgradeProvider
public static class Http2UpgradeProvider.Builder
extends Object
implements Builder<Http2UpgradeProvider.Builder, Http2UpgradeProvider>
Fluent API builder for
Http2UpgradeProvider.-
Method Summary
Modifier and TypeMethodDescriptionAdd a configured sub-protocol provider.build()Build the instance from this builder.http2Config(Http2Config http2Config) Custom configuration of HTTP/2 connections.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault Http2UpgradeProviderget()default Http2UpgradeProvider.Builderidentity()Instance of this builder as the correct type.default Http2UpgradeProvider.Builderupdate(Consumer<Http2UpgradeProvider.Builder> consumer) Update the builder in a fluent API way.
-
Method Details
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<Http2UpgradeProvider.Builder, Http2UpgradeProvider>- Returns:
- instance of the built type
-
http2Config
Custom configuration of HTTP/2 connections. If not defined, it will be configured from config, or defaults would be used.- Parameters:
http2Config- HTTP/2 configuration- Returns:
- updated builder
-
addSubProtocolProvider
Add a configured sub-protocol provider. This will replace the instance discovered through service loader (if one exists).- Parameters:
provider- provider to add- Returns:
- updated builer
-