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>, ConfigBuilderSupport.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 ConfigBuilderSupport.ConfiguredBuilder<BUILDER,PROTOTYPE>
Fluent API builder base for PathsConfig.
  • Constructor Details Link icon

    • BuilderBase Link icon

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

    • from Link icon

      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 Link icon

      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 Link icon

      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 ConfigBuilderSupport.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 Link icon

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      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 Link icon

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

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

      protected void validatePrototype()
      Validates required properties.