- 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 Http2Configuration
build()
Build the instance from this builder.Http2Configuration.Builder
enable(boolean enableHttp2)
Sets value to enable HTTP/2 support.Http2Configuration.Builder
maxContentLength(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:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<Http2Configuration>
- Returns:
- instance of the built type
-
-