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.
  • Constructor Details

    • AbstractHttp2Config

      protected AbstractHttp2Config(AbstractHttp2Config.Builder<?,?> b)
      Constructor using the builder argument.
      Parameters:
      b - the builder
  • 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
    • __configBeanType

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

      public static Class<?> __thisConfigBeanType()
      Returns the ConfigBean type.
      Returns:
      the config bean type
    • __metaAttributes

      public static Map<String,Map<String,Object>> __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

      public String toString()
      Overrides:
      toString in class Object
    • toStringInner

      protected String 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()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object another)
      Overrides:
      equals in class Object
    • visitAttributes

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