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

java.lang.Object
io.helidon.webserver.security.PathsConfig.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>, Prototype.ConfiguredBuilder<BUILDER,PROTOTYPE>
Direct Known Subclasses:
PathsConfig.Builder
Enclosing interface:
PathsConfig

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

    • BuilderBase

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

    • from

      public BUILDER from(PathsConfig 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

      public BUILDER from(PathsConfig.BuilderBase<?,?> builder)
      Update this builder from an existing prototype builder instance.
      Parameters:
      builder - existing builder prototype to update this builder from
      Returns:
      updated builder instance
    • config

      public BUILDER config(Config config)
      Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.
      Specified by:
      config in interface Prototype.ConfiguredBuilder<BUILDER extends PathsConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends PathsConfig>
      Parameters:
      config - configuration instance used to obtain values to update this builder
      Returns:
      updated builder instance
    • methods

      public BUILDER methods(List<? extends Method> methods)
      Parameters:
      methods -
      Returns:
      updated builder instance
      See Also:
    • addMethods

      public BUILDER addMethods(List<? extends Method> methods)
      Parameters:
      methods -
      Returns:
      updated builder instance
      See Also:
    • addMethod

      public BUILDER addMethod(Method method)
      Parameters:
      method -
      Returns:
      updated builder instance
      See Also:
    • path

      public BUILDER path(String path)
      Parameters:
      path -
      Returns:
      updated builder instance
      See Also:
    • sockets

      public BUILDER sockets(List<? extends String> sockets)
      Parameters:
      sockets -
      Returns:
      updated builder instance
      See Also:
    • addSockets

      public BUILDER addSockets(List<? extends String> sockets)
      Parameters:
      sockets -
      Returns:
      updated builder instance
      See Also:
    • handler

      public BUILDER handler(SecurityHandler handler)
      Parameters:
      handler -
      Returns:
      updated builder instance
      See Also:
    • handler

      public BUILDER handler(SecurityHandlerConfig handlerConfig)
      Parameters:
      handlerConfig -
      Returns:
      updated builder instance
      See Also:
    • handler

      public BUILDER handler(Consumer<SecurityHandlerConfig.Builder> consumer)
      Parameters:
      consumer - consumer of builder for
      Returns:
      updated builder instance
      See Also:
    • handler

      public BUILDER handler(Supplier<? extends SecurityHandler> supplier)
      Parameters:
      supplier - supplier of
      Returns:
      updated builder instance
      See Also:
    • methods

      public List<Method> methods()
      Returns:
      the methods
    • path

      public Optional<String> path()
      Returns:
      the path
    • sockets

      public List<String> sockets()
      Returns:
      the sockets
    • handler

      public Optional<SecurityHandler> handler()
      Returns:
      the handler
    • config

      public Optional<Config> config()
      If this instance was configured, this would be the config instance used.
      Returns:
      config node used to configure this builder, or empty if not configured
    • toString

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

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

      protected void validatePrototype()
      Validates required properties.