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 builder
T - 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 Details

    • Builder

      protected Builder()
      Fluent API builder constructor.
  • Method Details

    • maxFrameSize

      public int maxFrameSize()
      Description copied from interface: Http2Config
      The size of the largest frame payload that the sender is willing to receive in bytes. Default value is 16384 and maximum value is 224-1 = 16777215 bytes. See RFC 9113 section 6.5.2 for details.
      Specified by:
      maxFrameSize in interface Http2Config
      Returns:
      maximal frame size
    • maxHeaderListSize

      public long maxHeaderListSize()
      Description copied from interface: Http2Config
      The 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:
      maxHeaderListSize in interface Http2Config
      Returns:
      maximal header list size in bytes
    • maxConcurrentStreams

      public long maxConcurrentStreams()
      Description copied from interface: Http2Config
      Maximum number of concurrent streams that the server will allow. Defaults to 8192. 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:
      maxConcurrentStreams in interface Http2Config
      Returns:
      maximal number of concurrent streams
    • initialWindowSize

      public int initialWindowSize()
      Description copied from interface: Http2Config
      This 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:
      initialWindowSize in interface Http2Config
      Returns:
      maximum window size in bytes
    • flowControlTimeout

      public Duration flowControlTimeout()
      Description copied from interface: Http2Config
      Outbound flow control blocking timeout configured as Duration or 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 is PT0.1S.
      ISO_8601 format examples:
      PT0.1S100 milliseconds
      PT0.5S500 milliseconds
      PT2S2 seconds
      Specified by:
      flowControlTimeout in interface Http2Config
      Returns:
      duration
      See Also:
    • sendErrorDetails

      public boolean sendErrorDetails()
      Description copied from interface: Http2Config
      Whether to send error message over HTTP to client. Defaults to false, 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:
      sendErrorDetails in interface Http2Config
      Returns:
      whether to send error messages over the network
    • validatePath

      public boolean validatePath()
      Description copied from interface: Http2Config
      If set to false, any path is accepted (even containing illegal characters).
      Specified by:
      validatePath in interface Http2Config
      Returns:
      whether to validate path
    • requestedUriDiscovery

      public io.helidon.common.http.RequestedUriDiscoveryContext requestedUriDiscovery()
      Description copied from interface: Http2Config
      Requested URI discovery settings.
      Specified by:
      requestedUriDiscovery in interface Http2Config
      Returns:
      settings for computing the requested URI
    • maxFrameSize

      public B maxFrameSize(int val)
      Setter for 'maxFrameSize'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • maxHeaderListSize

      public B maxHeaderListSize(long val)
      Setter for 'maxHeaderListSize'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • maxConcurrentStreams

      public B maxConcurrentStreams(long val)
      Setter for 'maxConcurrentStreams'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • initialWindowSize

      public B initialWindowSize(int val)
      Setter for 'initialWindowSize'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • flowControlTimeout

      public B flowControlTimeout(Duration val)
      Setter for 'flowControlTimeout'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • sendErrorDetails

      public B sendErrorDetails(boolean val)
      Setter for 'sendErrorDetails'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • validatePath

      public B validatePath(boolean val)
      Setter for 'validatePath'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • requestedUriDiscovery

      public B requestedUriDiscovery(io.helidon.common.http.RequestedUriDiscoveryContext val)
      Setter for 'requestedUriDiscovery'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • accept

      public B accept(T val)
      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:
      acceptConfig in interface GeneratedConfigBeanBuilder
    • __acceptAndResolve

      protected void __acceptAndResolve(ResolutionContext ctx)
      Accept the config, resolves it, optionally validates.
      Parameters:
      ctx - the config resolution context
    • __configBeanType

      public Class<?> __configBeanType()
      Specified by:
      __configBeanType in interface GeneratedConfigBeanCommon
    • __mappers

      public Map<Class<?>,Function<io.helidon.common.config.Config,?>> __mappers()
      Specified by:
      __mappers in interface GeneratedConfigBeanMappers
    • visitAttributes

      public <T> void visitAttributes(io.helidon.builder.AttributeVisitor<T> visitor, T userDefinedCtx)
      Specified by:
      visitAttributes in interface GeneratedConfigBeanCommon