Module io.helidon.webserver.http2
Package io.helidon.webserver.http2
Class Http2ConnectionSelector.Builder
java.lang.Object
io.helidon.webserver.http2.Http2ConnectionSelector.Builder
- All Implemented Interfaces:
Builder<Http2ConnectionSelector.Builder,
,Http2ConnectionSelector> Supplier<Http2ConnectionSelector>
- Enclosing class:
Http2ConnectionSelector
public static class Http2ConnectionSelector.Builder
extends Object
implements Builder<Http2ConnectionSelector.Builder,Http2ConnectionSelector>
Fluent API builder for
Http2ConnectionProvider
.-
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 connection provider.
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<Http2ConnectionSelector.Builder,
Http2ConnectionSelector> - Returns:
- instance of the built type
-
http2Config
Custom configuration of HTTP/2 connection provider. If not defined, it will be configured from config, or defaults would be used.- Parameters:
http2Config
- HTTP/2 configuration- Returns:
- updated builder
-
addSubProtocolSelector
Add a configured sub-protocol provider. This will replace the instance discovered through service loader (if one exists).- Parameters:
selector
- provider to add- Returns:
- updated builer
-