- java.lang.Object
-
- io.helidon.webserver.Http2Configuration.Builder
-
- All Implemented Interfaces:
Builder<Http2Configuration>,Supplier<Http2Configuration>
- Enclosing interface:
- Http2Configuration
public static final class Http2Configuration.Builder extends Object implements Builder<Http2Configuration>
Builder forHttp2Configuration.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Http2Configurationbuild()Build the instance from this builder.Http2Configuration.Builderenable(boolean enableHttp2)Sets value to enable HTTP/2 support.Http2Configuration.BuildermaxContentLength(int http2MaxContentLength)Sets max content length for HTTP/2.
-
-
-
Method Detail
-
enable
public Http2Configuration.Builder enable(boolean enableHttp2)
Sets value to enable HTTP/2 support.- Parameters:
enableHttp2- New value.- Returns:
- an updated builder
-
maxContentLength
public Http2Configuration.Builder maxContentLength(int http2MaxContentLength)
Sets max content length for HTTP/2.- Parameters:
http2MaxContentLength- New value for max content length.- Returns:
- an updated builder
-
build
public Http2Configuration build()
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<Http2Configuration>- Returns:
- instance of the built type
-
-