Class Http2Config.Builder
java.lang.Object
io.helidon.http.HttpConfig.BuilderBase<Http2Config.Builder, Http2Config>
io.helidon.webserver.http2.Http2Config.BuilderBase<Http2Config.Builder, Http2Config>
io.helidon.webserver.http2.Http2Config.Builder
- All Implemented Interfaces:
Prototype.Builder<Http2Config.Builder, Http2Config>, Builder<Http2Config.Builder, Http2Config>, ConfigBuilderSupport.ConfiguredBuilder<Http2Config.Builder, Http2Config>, Supplier<Http2Config>
- Enclosing interface:
Http2Config
public static class Http2Config.Builder
extends Http2Config.BuilderBase<Http2Config.Builder, Http2Config>
implements Builder<Http2Config.Builder, Http2Config>
Fluent API builder for
Http2Config.-
Nested Class Summary
Nested classes/interfaces inherited from class Http2Config.BuilderBase
Http2Config.BuilderBase.Http2ConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations.Nested classes/interfaces inherited from class HttpConfig.BuilderBase
HttpConfig.BuilderBase.HttpConfigImplModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Method Summary
Modifier and TypeMethodDescriptionbuild()Create an instance from this builder.Create an instance of the prototype.Methods inherited from class Http2Config.BuilderBase
altSvc, altSvc, altSvc, altSvc, altSvc, clearAltSvc, config, flowControlTimeout, flowControlTimeout, from, from, initialWindowSize, initialWindowSize, maxConcurrentStreams, maxConcurrentStreams, maxEmptyFrames, maxEmptyFrames, maxFrameSize, maxFrameSize, maxHeaderListSize, maxHeaderListSize, maxRapidResets, maxRapidResets, name, name, preBuildPrototype, rapidResetCheckPeriod, rapidResetCheckPeriod, requestedUriDiscovery, requestedUriDiscovery, requestedUriDiscovery, requestedUriDiscovery, sendErrorDetails, sendErrorDetails, toString, validatePath, validatePath, validatePrototypeModifier and TypeMethodDescriptionaltSvc()ExplicitAlt-Svcadvertisement for responses handled by HTTP routing, excluding HTTP/2 subprotocol responses such as gRPC.ExplicitAlt-Svcadvertisement for responses handled by HTTP routing, excluding HTTP/2 subprotocol responses such as gRPC.altSvc(AltSvcConfig altSvc) ExplicitAlt-Svcadvertisement for responses handled by HTTP routing, excluding HTTP/2 subprotocol responses such as gRPC.altSvc(Consumer<AltSvcConfig.Builder> consumer) ExplicitAlt-Svcadvertisement for responses handled by HTTP routing, excluding HTTP/2 subprotocol responses such as gRPC.ExplicitAlt-Svcadvertisement for responses handled by HTTP routing, excluding HTTP/2 subprotocol responses such as gRPC.Clear existing value of altSvc.Update builder from configuration (node of this type).Outbound flow control blocking timeout configured asDurationor text in ISO-8601 format.flowControlTimeout(Duration flowControlTimeout) Outbound flow control blocking timeout configured asDurationor text in ISO-8601 format.from(Http2Config prototype) Update this builder from an existing prototype instance.from(Http2Config.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.intThis setting indicates the sender's maximum window size in bytes for stream-level flow control.initialWindowSize(int initialWindowSize) This setting indicates the sender's maximum window size in bytes for stream-level flow control.longMaximum number of concurrent streams that the server will allow.maxConcurrentStreams(long maxConcurrentStreams) Maximum number of concurrent streams that the server will allow.intMaximum number of consecutive empty frames allowed on connection.maxEmptyFrames(int maxEmptyFrames) Maximum number of consecutive empty frames allowed on connection.intThe size of the largest frame payload that the sender is willing to receive in bytes.maxFrameSize(int maxFrameSize) The size of the largest frame payload that the sender is willing to receive in bytes.longThe maximum field section size the server advertises to clients using the HTTP/2SETTINGS_MAX_HEADER_LIST_SIZEsetting.maxHeaderListSize(long maxHeaderListSize) The maximum field section size the server advertises to clients using the HTTP/2SETTINGS_MAX_HEADER_LIST_SIZEsetting.intMaximum number of rapid client resets within the check period and server-side resets over the connection lifetime before GOAWAY is sent, or-1to disable both reset-count checks; fixed internal bounds still apply to frames received after the server has locally reset a stream.maxRapidResets(int maxRapidResets) Maximum number of rapid client resets within the check period and server-side resets over the connection lifetime before GOAWAY is sent, or-1to disable both reset-count checks; fixed internal bounds still apply to frames received after the server has locally reset a stream.name()Name option.Name option.protected voidHandles providers and decorators.Period for counting rapid resets(stream RST sent by client before any data have been sent by server).rapidResetCheckPeriod(Duration rapidResetCheckPeriod) Period for counting rapid resets(stream RST sent by client before any data have been sent by server).Requested URI discovery settings.requestedUriDiscovery(RequestedUriDiscoveryContext requestedUriDiscovery) Requested URI discovery settings.Requested URI discovery settings.requestedUriDiscovery(Supplier<? extends RequestedUriDiscoveryContext> supplier) Requested URI discovery settings.booleanWhether to send error message over HTTP to client.sendErrorDetails(boolean sendErrorDetails) Whether to send error message over HTTP to client.toString()booleanWhether to validate path characters and the HTTP/2:pathpseudo-header.validatePath(boolean validatePath) Whether to validate path characters and the HTTP/2:pathpseudo-header.protected voidValidates required properties.Methods inherited from class HttpConfig.BuilderBase
config, from, from, log, log, log, log, maxBufferedEntitySize, maxBufferedEntitySize, maxHeadersSize, maxHeadersSize, validateRequestHeaders, validateRequestHeaders, validateResponseHeaders, validateResponseHeadersModifier and TypeMethodDescriptionconfig()Configuration used to configure this instance.from(HttpConfig prototype) Update this builder from an existing prototype instance.from(HttpConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.log()HTTP Log configuration.log(HttpLogConfig log) HTTP Log configuration.log(Consumer<HttpLogConfig.Builder> consumer) HTTP Log configuration.log(Supplier<? extends HttpLogConfig> supplier) HTTP Log configuration.Configure the maximum size allowed for an entity that can be explicitly buffered by the application by callingio.helidon.http.media.ReadableEntity.buffer().maxBufferedEntitySize(Size maxBufferedEntitySize) Configure the maximum size allowed for an entity that can be explicitly buffered by the application by callingio.helidon.http.media.ReadableEntity.buffer().intConfigure the maximum allowed headers size, which must be greater than0.maxHeadersSize(int maxHeadersSize) Configure the maximum allowed headers size, which must be greater than0.booleanWhether to validate request headers.validateRequestHeaders(boolean validateRequestHeaders) Whether to validate request headers.booleanWhether to validate response headers.validateResponseHeaders(boolean validateResponseHeaders) Whether to validate response headers.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Builder
get, identity, updateModifier and TypeMethodDescriptiondefault Http2Configget()default Http2Config.Builderidentity()Instance of this builder as the correct type.default Http2Config.Builderupdate(Consumer<Http2Config.Builder> consumer) Update the builder in a fluent API way.Methods inherited from interface Prototype.Builder
selfModifier and TypeMethodDescriptiondefault Http2Config.Builderself()Instance of this builder as the correct type.
-
Method Details
-
buildPrototype
Create an instance of the prototype. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildPrototypein interfacePrototype.Builder<Http2Config.Builder, Http2Config>- Returns:
- an instance of the setup object created from this builder
-
build
Create an instance from this builder. Calling this method may update this builder from providers and decorators, so repeated calls may have side effects.- Specified by:
buildin interfaceBuilder<Http2Config.Builder, Http2Config>- Returns:
- instance of the built type
-