Class Http1ConnectionSelectorConfig.BuilderBase<BUILDER extends Http1ConnectionSelectorConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends Http1ConnectionSelectorConfig>

java.lang.Object
io.helidon.webserver.http1.Http1ConnectionSelectorConfig.BuilderBase<BUILDER,PROTOTYPE>
Type Parameters:
BUILDER - type of the builder extending this abstract builder
PROTOTYPE - type of the prototype interface that would be built by Prototype.Builder.buildPrototype()
All Implemented Interfaces:
Prototype.Builder<BUILDER,PROTOTYPE>
Direct Known Subclasses:
Http1ConnectionSelectorConfig.Builder
Enclosing interface:
Http1ConnectionSelectorConfig

public abstract static class Http1ConnectionSelectorConfig.BuilderBase<BUILDER extends Http1ConnectionSelectorConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends Http1ConnectionSelectorConfig> extends Object implements Prototype.Builder<BUILDER,PROTOTYPE>
Fluent API builder base for Http1ConnectionSelector.
  • Constructor Details

    • BuilderBase

      protected BuilderBase()
      Protected to support extensibility.
  • Method Details

    • from

      public BUILDER from(Http1ConnectionSelectorConfig prototype)
      Update this builder from an existing prototype instance. This method disables automatic service discovery.
      Parameters:
      prototype - existing prototype to update this builder from
      Returns:
      updated builder instance
    • from

      Update this builder from an existing prototype builder instance.
      Parameters:
      builder - existing builder prototype to update this builder from
      Returns:
      updated builder instance
    • addUpgrader

      public BUILDER addUpgrader(Http1Upgrader upgrader)
      Add a new upgrader, replacing an existing one for the same protocol.
      Parameters:
      upgrader - upgrader to add
      Returns:
      updated builder instance
    • upgraders

      public BUILDER upgraders(Map<? extends String,? extends Http1Upgrader> upgraders)
      This method replaces all values with the new ones.
      Parameters:
      upgraders - map of protocol name to upgrader
      Returns:
      updated builder instance
      See Also:
    • addUpgraders

      public BUILDER addUpgraders(Map<? extends String,? extends Http1Upgrader> upgraders)
      This method keeps existing values, then puts all new values into the map.
      Parameters:
      upgraders - map of protocol name to upgrader
      Returns:
      updated builder instance
      See Also:
    • putUpgrader

      public BUILDER putUpgrader(String key, Http1Upgrader upgrader)
      This method adds a new value to the map, or replaces it if the key already exists.
      Parameters:
      key - key to add or replace
      upgrader - new value for the key
      Returns:
      updated builder instance
      See Also:
    • config

      public BUILDER config(Http1Config config)
      HTTP/1 protocol configuration to use for this connection selector.
      Parameters:
      config - HTTP/1 protocol configuration
      Returns:
      updated builder instance
      See Also:
    • config

      public BUILDER config(Consumer<Http1Config.Builder> consumer)
      HTTP/1 protocol configuration to use for this connection selector.
      Parameters:
      consumer - consumer of builder for HTTP/1 protocol configuration
      Returns:
      updated builder instance
      See Also:
    • config

      public BUILDER config(Supplier<? extends Http1Config> supplier)
      HTTP/1 protocol configuration to use for this connection selector.
      Parameters:
      supplier - supplier of HTTP/1 protocol configuration
      Returns:
      updated builder instance
      See Also:
    • upgraders

      public Map<String,Http1Upgrader> upgraders()
      Upgraders to support upgrading from HTTP/1.1 to a different protocol (such as websocket).
      Returns:
      the upgraders
    • config

      public Optional<Http1Config> config()
      HTTP/1 protocol configuration to use for this connection selector.
      Returns:
      the config
    • toString

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

      protected void preBuildPrototype()
      Handles providers and decorators.
    • validatePrototype

      protected void validatePrototype()
      Validates required properties.