Class AbstractHttp1Config.Builder<B extends AbstractHttp1Config.Builder<B,T>,T extends Http1Config>

java.lang.Object
io.helidon.builder.config.spi.GeneratedConfigBeanBuilderBase
io.helidon.nima.webserver.http1.AbstractHttp1Config.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>, Http1Config, Supplier<T>
Direct Known Subclasses:
DefaultHttp1Config.Builder
Enclosing class:
AbstractHttp1Config

public abstract static class AbstractHttp1Config.Builder<B extends AbstractHttp1Config.Builder<B,T>,T extends Http1Config> extends GeneratedConfigBeanBuilderBase implements Http1Config, io.helidon.common.Builder<B,T>
Fluent API builder for T.
  • Field Details

    • sendListeners

      protected final List sendListeners
      Field value for java.util.List<io.helidon.nima.webserver.http1.Http1ConnectionListener> sendListeners().
    • receiveListeners

      protected final List receiveListeners
      Field value for java.util.List<io.helidon.nima.webserver.http1.Http1ConnectionListener> receiveListeners().
  • Constructor Details

    • Builder

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

    • maxPrologueLength

      public int maxPrologueLength()
      Description copied from interface: Http1Config
      Maximal size of received HTTP prologue (GET /path HTTP/1.1).
      Specified by:
      maxPrologueLength in interface Http1Config
      Returns:
      maximal size in bytes
    • maxHeadersSize

      public int maxHeadersSize()
      Description copied from interface: Http1Config
      Maximal size of received headers in bytes.
      Specified by:
      maxHeadersSize in interface Http1Config
      Returns:
      maximal header size
    • validateHeaders

      public boolean validateHeaders()
      Description copied from interface: Http1Config
      Whether to validate headers. If set to false, any value is accepted, otherwise validates headers + known headers are validated by format (content length is always validated as it is part of protocol processing (other headers may be validated if features use them)).
      Specified by:
      validateHeaders in interface Http1Config
      Returns:
      whether to validate headers
    • validatePath

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

      public boolean receiveLog()
      Description copied from interface: Http1Config
      Logging of received packets. Uses trace and debug levels on logger of Http1LoggingConnectionListener with suffix of .recv`.
      Specified by:
      receiveLog in interface Http1Config
      Returns:
      true if logging should be enabled for received packets, false if no logging should be done
    • sendLog

      public boolean sendLog()
      Description copied from interface: Http1Config
      Logging of sent packets. Uses trace and debug levels on logger of Http1LoggingConnectionListener with suffix of .send`.
      Specified by:
      sendLog in interface Http1Config
      Returns:
      true if logging should be enabled for sent packets, false if no logging should be done
    • continueImmediately

      public boolean continueImmediately()
      Description copied from interface: Http1Config
      When true WebServer answers to expect continue with 100 continue immediately, not waiting for user to actually request the data.
      Specified by:
      continueImmediately in interface Http1Config
      Returns:
      if true answer with 100 continue immediately after expect continue
    • requestedUriDiscovery

      public RequestedUriDiscoveryContext requestedUriDiscovery()
      Description copied from interface: Http1Config
      Requested URI discovery settings.
      Specified by:
      requestedUriDiscovery in interface Http1Config
      Returns:
      settings for computing the requested URI
    • sendListeners

      public List<Http1ConnectionListener> sendListeners()
      Description copied from interface: Http1Config
      Connection send event listeners for HTTP/1.1.
      Specified by:
      sendListeners in interface Http1Config
      Returns:
      send event listeners
    • receiveListeners

      public List<Http1ConnectionListener> receiveListeners()
      Description copied from interface: Http1Config
      Connection receive event listeners for HTTP/1.1.
      Specified by:
      receiveListeners in interface Http1Config
      Returns:
      receive event listeners
    • compositeSendListener

      public Http1ConnectionListener compositeSendListener()
      Description copied from interface: Http1Config
      A single send listener, this value is computed.
      Specified by:
      compositeSendListener in interface Http1Config
      Returns:
      send listener
    • compositeReceiveListener

      public Http1ConnectionListener compositeReceiveListener()
      Description copied from interface: Http1Config
      A single receive listener, this value is computed.
      Specified by:
      compositeReceiveListener in interface Http1Config
      Returns:
      receive listener
    • maxPrologueLength

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

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

      public B validateHeaders(boolean val)
      Setter for 'validateHeaders'.
      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
    • receiveLog

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

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

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

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

      public B sendListeners(Collection<Http1ConnectionListener> val)
      Setter for 'sendListeners'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • addSendListeners

      public B addSendListeners(Collection<Http1ConnectionListener> val)
      Setter for 'sendListeners'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • addSendListener

      public B addSendListener(Http1ConnectionListener val)
      Setter for 'sendListeners'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • receiveListeners

      public B receiveListeners(Collection<Http1ConnectionListener> val)
      Setter for 'receiveListeners'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • addReceiveListeners

      public B addReceiveListeners(Collection<Http1ConnectionListener> val)
      Setter for 'receiveListeners'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • addReceiveListener

      public B addReceiveListener(Http1ConnectionListener val)
      Setter for 'receiveListeners'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • compositeSendListener

      public B compositeSendListener(Http1ConnectionListener val)
      Setter for 'compositeSendListener'.
      Parameters:
      val - the new value
      Returns:
      this fluent builder
    • compositeReceiveListener

      public B compositeReceiveListener(Http1ConnectionListener val)
      Setter for 'compositeReceiveListener'.
      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