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

java.lang.Object
io.helidon.common.configurable.AllowListConfig.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:
AllowListConfig.Builder
Enclosing interface:
AllowListConfig

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

    • BuilderBase

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

    • from

      public BUILDER from(AllowListConfig 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(AllowListConfig.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 AllowListConfig.BuilderBase<BUILDER,PROTOTYPE>,PROTOTYPE extends AllowListConfig>
      Parameters:
      config - configuration instance used to obtain values to update this builder
      Returns:
      updated builder instance
    • allowAll

      public BUILDER allowAll(boolean allowAll)
      Allows all strings to match (subject to "deny" conditions). An allow.all setting of false does not deny all strings but rather represents the absence of a universal match, meaning that other allow and deny settings determine the matching outcomes.
      Parameters:
      allowAll - whether to allow all strings to match (subject to "deny" conditions)
      Returns:
      updated builder instance
      See Also:
    • allowed

      public BUILDER allowed(List<? extends String> allowed)
      Exact strings to allow.
      Parameters:
      allowed - exact strings to allow
      Returns:
      updated builder instance
      See Also:
    • addAllowed

      public BUILDER addAllowed(List<? extends String> allowed)
      Exact strings to allow.
      Parameters:
      allowed - exact strings to allow
      Returns:
      updated builder instance
      See Also:
    • addAllowed

      public BUILDER addAllowed(String allowed)
      Exact strings to allow.
      Parameters:
      allowed - exact strings to allow
      Returns:
      updated builder instance
      See Also:
    • allowedPrefixes

      public BUILDER allowedPrefixes(List<? extends String> allowedPrefixes)
      Prefixes specifying strings to allow.
      Parameters:
      allowedPrefixes - prefixes which allow matching
      Returns:
      updated builder instance
      See Also:
    • addAllowedPrefixes

      public BUILDER addAllowedPrefixes(List<? extends String> allowedPrefixes)
      Prefixes specifying strings to allow.
      Parameters:
      allowedPrefixes - prefixes which allow matching
      Returns:
      updated builder instance
      See Also:
    • addAllowedPrefix

      public BUILDER addAllowedPrefix(String allowedPrefix)
      Prefixes specifying strings to allow.
      Parameters:
      allowedPrefix - prefixes which allow matching
      Returns:
      updated builder instance
      See Also:
    • allowedSuffixes

      public BUILDER allowedSuffixes(List<? extends String> allowedSuffixes)
      Suffixes specifying strings to allow.
      Parameters:
      allowedSuffixes - suffixes which allow matching
      Returns:
      updated builder instance
      See Also:
    • addAllowedSuffixes

      public BUILDER addAllowedSuffixes(List<? extends String> allowedSuffixes)
      Suffixes specifying strings to allow.
      Parameters:
      allowedSuffixes - suffixes which allow matching
      Returns:
      updated builder instance
      See Also:
    • addAllowedSuffix

      public BUILDER addAllowedSuffix(String allowedSuffix)
      Suffixes specifying strings to allow.
      Parameters:
      allowedSuffix - suffixes which allow matching
      Returns:
      updated builder instance
      See Also:
    • allowedPatterns

      public BUILDER allowedPatterns(List<? extends Pattern> allowedPatterns)
      Patterns specifying strings to allow.
      Parameters:
      allowedPatterns - patterns which allow matching
      Returns:
      updated builder instance
      See Also:
    • addAllowedPatterns

      public BUILDER addAllowedPatterns(List<? extends Pattern> allowedPatterns)
      Patterns specifying strings to allow.
      Parameters:
      allowedPatterns - patterns which allow matching
      Returns:
      updated builder instance
      See Also:
    • addAllowedPattern

      public BUILDER addAllowedPattern(Pattern allowedPattern)
      Patterns specifying strings to allow.
      Parameters:
      allowedPattern - patterns which allow matching
      Returns:
      updated builder instance
      See Also:
    • denied

      public BUILDER denied(List<? extends String> denied)
      Exact strings to deny.
      Parameters:
      denied - exact strings to allow
      Returns:
      updated builder instance
      See Also:
    • addDenied

      public BUILDER addDenied(List<? extends String> denied)
      Exact strings to deny.
      Parameters:
      denied - exact strings to allow
      Returns:
      updated builder instance
      See Also:
    • addDenied

      public BUILDER addDenied(String denied)
      Exact strings to deny.
      Parameters:
      denied - exact strings to allow
      Returns:
      updated builder instance
      See Also:
    • deniedPrefixes

      public BUILDER deniedPrefixes(List<? extends String> deniedPrefixes)
      Prefixes specifying strings to deny.
      Parameters:
      deniedPrefixes - prefixes which deny matching
      Returns:
      updated builder instance
      See Also:
    • addDeniedPrefixes

      public BUILDER addDeniedPrefixes(List<? extends String> deniedPrefixes)
      Prefixes specifying strings to deny.
      Parameters:
      deniedPrefixes - prefixes which deny matching
      Returns:
      updated builder instance
      See Also:
    • addDeniedPrefix

      public BUILDER addDeniedPrefix(String deniedPrefix)
      Prefixes specifying strings to deny.
      Parameters:
      deniedPrefix - prefixes which deny matching
      Returns:
      updated builder instance
      See Also:
    • deniedSuffixes

      public BUILDER deniedSuffixes(List<? extends String> deniedSuffixes)
      Suffixes specifying strings to deny.
      Parameters:
      deniedSuffixes - suffixes which deny matching
      Returns:
      updated builder instance
      See Also:
    • addDeniedSuffixes

      public BUILDER addDeniedSuffixes(List<? extends String> deniedSuffixes)
      Suffixes specifying strings to deny.
      Parameters:
      deniedSuffixes - suffixes which deny matching
      Returns:
      updated builder instance
      See Also:
    • addDeniedSuffix

      public BUILDER addDeniedSuffix(String deniedSuffix)
      Suffixes specifying strings to deny.
      Parameters:
      deniedSuffix - suffixes which deny matching
      Returns:
      updated builder instance
      See Also:
    • deniedPatterns

      public BUILDER deniedPatterns(List<? extends Pattern> deniedPatterns)
      Patterns specifying strings to deny.
      Parameters:
      deniedPatterns - patterns which deny matching
      Returns:
      updated builder instance
      See Also:
    • addDeniedPatterns

      public BUILDER addDeniedPatterns(List<? extends Pattern> deniedPatterns)
      Patterns specifying strings to deny.
      Parameters:
      deniedPatterns - patterns which deny matching
      Returns:
      updated builder instance
      See Also:
    • addDeniedPattern

      public BUILDER addDeniedPattern(Pattern deniedPattern)
      Patterns specifying strings to deny.
      Parameters:
      deniedPattern - patterns which deny matching
      Returns:
      updated builder instance
      See Also:
    • allowedPredicates

      public BUILDER allowedPredicates(List<Predicate<String>> allowedPredicates)
      Allowed predicates.
      Parameters:
      allowedPredicates - predicates to allow
      Returns:
      updated builder instance
      See Also:
    • addAllowedPredicates

      public BUILDER addAllowedPredicates(List<Predicate<String>> allowedPredicates)
      Allowed predicates.
      Parameters:
      allowedPredicates - predicates to allow
      Returns:
      updated builder instance
      See Also:
    • addAllowed

      public BUILDER addAllowed(Predicate<String> allowed)
      Allowed predicates.
      Parameters:
      allowed - predicates to allow
      Returns:
      updated builder instance
      See Also:
    • deniedPredicates

      public BUILDER deniedPredicates(List<Predicate<String>> deniedPredicates)
      Deny predicates.
      Parameters:
      deniedPredicates - predicates to deny
      Returns:
      updated builder instance
      See Also:
    • addDeniedPredicates

      public BUILDER addDeniedPredicates(List<Predicate<String>> deniedPredicates)
      Deny predicates.
      Parameters:
      deniedPredicates - predicates to deny
      Returns:
      updated builder instance
      See Also:
    • addDenied

      public BUILDER addDenied(Predicate<String> denied)
      Deny predicates.
      Parameters:
      denied - predicates to deny
      Returns:
      updated builder instance
      See Also:
    • allowAll

      public boolean allowAll()
      Allows all strings to match (subject to "deny" conditions). An allow.all setting of false does not deny all strings but rather represents the absence of a universal match, meaning that other allow and deny settings determine the matching outcomes.
      Returns:
      the allow all
    • allowed

      public List<String> allowed()
      Exact strings to allow.
      Returns:
      the allowed
    • allowedPrefixes

      public List<String> allowedPrefixes()
      Prefixes specifying strings to allow.
      Returns:
      the allowed prefixes
    • allowedSuffixes

      public List<String> allowedSuffixes()
      Suffixes specifying strings to allow.
      Returns:
      the allowed suffixes
    • allowedPatterns

      public List<Pattern> allowedPatterns()
      Patterns specifying strings to allow.
      Returns:
      the allowed patterns
    • denied

      public List<String> denied()
      Exact strings to deny.
      Returns:
      the denied
    • deniedPrefixes

      public List<String> deniedPrefixes()
      Prefixes specifying strings to deny.
      Returns:
      the denied prefixes
    • deniedSuffixes

      public List<String> deniedSuffixes()
      Suffixes specifying strings to deny.
      Returns:
      the denied suffixes
    • deniedPatterns

      public List<Pattern> deniedPatterns()
      Patterns specifying strings to deny.
      Returns:
      the denied patterns
    • allowedPredicates

      public List<Predicate<String>> allowedPredicates()
      Allowed predicates.
      Returns:
      the allowed predicates
    • deniedPredicates

      public List<Predicate<String>> deniedPredicates()
      Deny predicates.
      Returns:
      the denied predicates
    • 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.