Package io.helidon.nima.http2.webserver
Class AbstractHttp2Config.Builder<B extends AbstractHttp2Config.Builder<B,T>,T extends Http2Config>
java.lang.Object
io.helidon.builder.config.spi.GeneratedConfigBeanBuilderBase
io.helidon.nima.http2.webserver.AbstractHttp2Config.Builder<B,T>
- Type Parameters:
B- the type of the builderT- the type of the built instance
- All Implemented Interfaces:
ConfigProvider,GeneratedConfigBeanBuilder,GeneratedConfigBeanCommon,GeneratedConfigBeanMappers,io.helidon.common.Builder<B,,T> Http2Config,Supplier<T>
- Direct Known Subclasses:
DefaultHttp2Config.Builder
- Enclosing class:
AbstractHttp2Config
public abstract static class AbstractHttp2Config.Builder<B extends AbstractHttp2Config.Builder<B,T>,T extends Http2Config>
extends GeneratedConfigBeanBuilderBase
implements Http2Config, io.helidon.common.Builder<B,T>
Fluent API builder for
T.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAccept the config, resolves it, optionally validates.Class<?>Accept and update from the provided value object.voidacceptConfig(io.helidon.common.config.Config cfg, ConfigResolver resolver, ConfigBeanBuilderValidator<?> validator) Outbound flow control blocking timeout configured asDurationor text in ISO-8601 format.Setter for 'flowControlTimeout'.intThis setting indicates the sender's maximum window size in bytes for connection-level flow control.initialWindowSize(int val) Setter for 'initialWindowSize'.longMaximum number of concurrent streams that the server will allow.maxConcurrentStreams(long val) Setter for 'maxConcurrentStreams'.intThe size of the largest frame payload that the sender is willing to receive in bytes.maxFrameSize(int val) Setter for 'maxFrameSize'.longThe maximum field section size that the sender is prepared to accept in bytes.maxHeaderListSize(long val) Setter for 'maxHeaderListSize'.io.helidon.common.http.RequestedUriDiscoveryContextRequested URI discovery settings.requestedUriDiscovery(io.helidon.common.http.RequestedUriDiscoveryContext val) Setter for 'requestedUriDiscovery'.booleanWhether to send error message over HTTP to client.sendErrorDetails(boolean val) Setter for 'sendErrorDetails'.booleanIf set to false, any path is accepted (even containing illegal characters).validatePath(boolean val) Setter for 'validatePath'.<T> voidvisitAttributes(io.helidon.builder.AttributeVisitor<T> visitor, T userDefinedCtx) Methods inherited from class io.helidon.builder.config.spi.GeneratedConfigBeanBuilderBase
__config, __config, acceptConfig, createResolutionContext, finishedResolutionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.common.Builder
build, get, identity, updateMethods inherited from interface io.helidon.builder.config.spi.GeneratedConfigBeanMappers
__mapper
-
Constructor Details
-
Builder
protected Builder()Fluent API builder constructor.
-
-
Method Details
-
maxFrameSize
public int maxFrameSize()Description copied from interface:Http2ConfigThe size of the largest frame payload that the sender is willing to receive in bytes. Default value is16384and maximum value is 224-1 = 16777215 bytes. See RFC 9113 section 6.5.2 for details.- Specified by:
maxFrameSizein interfaceHttp2Config- Returns:
- maximal frame size
-
maxHeaderListSize
public long maxHeaderListSize()Description copied from interface:Http2ConfigThe maximum field section size that the sender is prepared to accept in bytes. See RFC 9113 section 6.5.2 for details. Default is maximal unsigned int.- Specified by:
maxHeaderListSizein interfaceHttp2Config- Returns:
- maximal header list size in bytes
-
maxConcurrentStreams
public long maxConcurrentStreams()Description copied from interface:Http2ConfigMaximum number of concurrent streams that the server will allow. Defaults to8192. This limit is directional: it applies to the number of streams that the sender permits the receiver to create. It is recommended that this value be no smaller than 100 to not unnecessarily limit parallelism See RFC 9113 section 6.5.2 for details.- Specified by:
maxConcurrentStreamsin interfaceHttp2Config- Returns:
- maximal number of concurrent streams
-
initialWindowSize
public int initialWindowSize()Description copied from interface:Http2ConfigThis setting indicates the sender's maximum window size in bytes for connection-level flow control. Default and maximum value is 231-1 = 2147483647 bytes. This setting affects the window size of HTTP/2 connection. Any value greater than 2147483647 causes an error. Any value smaller than initial window size causes an error. See RFC 9113 section 6.9.1 for details.- Specified by:
initialWindowSizein interfaceHttp2Config- Returns:
- maximum window size in bytes
-
flowControlTimeout
Description copied from interface:Http2ConfigOutbound flow control blocking timeout configured asDurationor text in ISO-8601 format. Blocking timeout defines an interval to wait for the outbound window size changes(incoming window updates) before the next blocking iteration. Default value isPT0.1S.ISO_8601 format examples: PT0.1S 100 milliseconds PT0.5S 500 milliseconds PT2S 2 seconds - Specified by:
flowControlTimeoutin interfaceHttp2Config- Returns:
- duration
- See Also:
-
sendErrorDetails
public boolean sendErrorDetails()Description copied from interface:Http2ConfigWhether to send error message over HTTP to client. Defaults tofalse, as exception message may contain internal information that could be used as an attack vector. Use with care and in cases where both server and clients are under your full control (such as for testing).- Specified by:
sendErrorDetailsin interfaceHttp2Config- Returns:
- whether to send error messages over the network
-
validatePath
public boolean validatePath()Description copied from interface:Http2ConfigIf set to false, any path is accepted (even containing illegal characters).- Specified by:
validatePathin interfaceHttp2Config- Returns:
- whether to validate path
-
requestedUriDiscovery
public io.helidon.common.http.RequestedUriDiscoveryContext requestedUriDiscovery()Description copied from interface:Http2ConfigRequested URI discovery settings.- Specified by:
requestedUriDiscoveryin interfaceHttp2Config- Returns:
- settings for computing the requested URI
-
maxFrameSize
Setter for 'maxFrameSize'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
maxHeaderListSize
Setter for 'maxHeaderListSize'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
maxConcurrentStreams
Setter for 'maxConcurrentStreams'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
initialWindowSize
Setter for 'initialWindowSize'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
flowControlTimeout
Setter for 'flowControlTimeout'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
sendErrorDetails
Setter for 'sendErrorDetails'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
validatePath
Setter for 'validatePath'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
requestedUriDiscovery
Setter for 'requestedUriDiscovery'.- Parameters:
val- the new value- Returns:
- this fluent builder
-
accept
Accept and update from the provided value object.- Parameters:
val- the value object to copy from- Returns:
- this instance typed to correct type
-
acceptConfig
public void acceptConfig(io.helidon.common.config.Config cfg, ConfigResolver resolver, ConfigBeanBuilderValidator<?> validator) - Specified by:
acceptConfigin interfaceGeneratedConfigBeanBuilder
-
__acceptAndResolve
Accept the config, resolves it, optionally validates.- Parameters:
ctx- the config resolution context
-
__configBeanType
- Specified by:
__configBeanTypein interfaceGeneratedConfigBeanCommon
-
__mappers
- Specified by:
__mappersin interfaceGeneratedConfigBeanMappers
-
visitAttributes
public <T> void visitAttributes(io.helidon.builder.AttributeVisitor<T> visitor, T userDefinedCtx) - Specified by:
visitAttributesin interfaceGeneratedConfigBeanCommon
-