Package io.helidon.nima.http2.webserver
Class AbstractHttp2Config
java.lang.Object
io.helidon.builder.config.spi.GeneratedConfigBeanBase
io.helidon.nima.http2.webserver.AbstractHttp2Config
- All Implemented Interfaces:
ConfigProvider,GeneratedConfigBeanCommon,Http2Config
- Direct Known Subclasses:
DefaultHttp2Config
@Generated(value="io.helidon.builder.config.processor.ConfigBeanBuilderCreator",
comments="version=1")
public abstract class AbstractHttp2Config
extends GeneratedConfigBeanBase
implements Http2Config
Abstract implementation w/ builder for
Http2Config.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAbstractHttp2Config.Builder<B extends AbstractHttp2Config.Builder<B,T>, T extends Http2Config> Fluent API builder forT. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedConstructor using the builder argument. -
Method Summary
Modifier and TypeMethodDescriptionClass<?>The map of meta attributes describing each element of this type.static Class<?>Returns theConfigBeantype.booleanOutbound flow control blocking timeout configured asDurationor text in ISO-8601 format.inthashCode()intThis setting indicates the sender's maximum window size in bytes for connection-level flow control.longMaximum number of concurrent streams that the server will allow.intThe size of the largest frame payload that the sender is willing to receive in bytes.longThe maximum field section size that the sender is prepared to accept in bytes.io.helidon.common.http.RequestedUriDiscoveryContextRequested URI discovery settings.booleanWhether to send error message over HTTP to client.toString()protected StringProduces the inner portion of the toString() output (i.e., what is between the parens).booleanIf set to false, any path is accepted (even containing illegal characters).<T> voidvisitAttributes(io.helidon.builder.AttributeVisitor<T> visitor, T userDefinedCtx) Methods inherited from class io.helidon.builder.config.spi.GeneratedConfigBeanBase
__config, __instanceId, __instanceId
-
Constructor Details
-
AbstractHttp2Config
Constructor using the builder argument.- Parameters:
b- the builder
-
-
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
-
__configBeanType
- Specified by:
__configBeanTypein interfaceGeneratedConfigBeanCommon
-
__thisConfigBeanType
Returns theConfigBeantype.- Returns:
- the config bean type
-
__metaAttributes
The map of meta attributes describing each element of this type.- Returns:
- the map of meta attributes using the key being the attribute name
-
toString
-
toStringInner
Produces the inner portion of the toString() output (i.e., what is between the parens).- Returns:
- portion of the toString output
-
hashCode
public int hashCode() -
equals
-
visitAttributes
public <T> void visitAttributes(io.helidon.builder.AttributeVisitor<T> visitor, T userDefinedCtx) - Specified by:
visitAttributesin interfaceGeneratedConfigBeanCommon
-