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 builderPROTOTYPE- type of the prototype interface that would be built byPrototype.Builder.buildPrototype()
- All Implemented Interfaces:
Prototype.Builder<BUILDER, PROTOTYPE>, ConfigBuilderSupport.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 ConfigBuilderSupport.ConfiguredBuilder<BUILDER, PROTOTYPE>
Fluent API builder base for
AllowListConfig.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classGenerated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllowed(String allowed) Exact strings to allow.addAllowed(Predicate<String> allowed) Allowed predicates.addAllowed(List<String> allowed) Exact strings to allow.addAllowedPattern(Pattern allowedPattern) Patterns specifying strings to allow.addAllowedPatterns(List<? extends Pattern> allowedPatterns) Patterns specifying strings to allow.addAllowedPredicates(List<Predicate<String>> allowedPredicates) Allowed predicates.addAllowedPrefix(String allowedPrefix) Prefixes specifying strings to allow.addAllowedPrefixes(List<String> allowedPrefixes) Prefixes specifying strings to allow.addAllowedSuffix(String allowedSuffix) Suffixes specifying strings to allow.addAllowedSuffixes(List<String> allowedSuffixes) Suffixes specifying strings to allow.Exact strings to deny.Deny predicates.Exact strings to deny.addDeniedPattern(Pattern deniedPattern) Patterns specifying strings to deny.addDeniedPatterns(List<? extends Pattern> deniedPatterns) Patterns specifying strings to deny.addDeniedPredicates(List<Predicate<String>> deniedPredicates) Deny predicates.addDeniedPrefix(String deniedPrefix) Prefixes specifying strings to deny.addDeniedPrefixes(List<String> deniedPrefixes) Prefixes specifying strings to deny.addDeniedSuffix(String deniedSuffix) Suffixes specifying strings to deny.addDeniedSuffixes(List<String> deniedSuffixes) Suffixes specifying strings to deny.booleanallowAll()Allows all strings to match (subject to "deny" conditions).allowAll(boolean allowAll) Allows all strings to match (subject to "deny" conditions).allowed()Exact strings to allow.Exact strings to allow.Patterns specifying strings to allow.allowedPatterns(List<? extends Pattern> allowedPatterns) Patterns specifying strings to allow.Allowed predicates.allowedPredicates(List<Predicate<String>> allowedPredicates) Allowed predicates.Prefixes specifying strings to allow.allowedPrefixes(List<String> allowedPrefixes) Prefixes specifying strings to allow.Suffixes specifying strings to allow.allowedSuffixes(List<String> allowedSuffixes) Suffixes specifying strings to allow.Clear all allowed.Clear all allowedPatterns.Clear all allowedPredicates.Clear all allowedPrefixes.Clear all allowedSuffixes.Clear all denied.Clear all deniedPatterns.Clear all deniedPredicates.Clear all deniedPrefixes.Clear all deniedSuffixes.config()Configuration used to configure this instance.Update builder from configuration (node of this type).denied()Exact strings to deny.Exact strings to deny.Patterns specifying strings to deny.deniedPatterns(List<? extends Pattern> deniedPatterns) Patterns specifying strings to deny.Deny predicates.deniedPredicates(List<Predicate<String>> deniedPredicates) Deny predicates.Prefixes specifying strings to deny.deniedPrefixes(List<String> deniedPrefixes) Prefixes specifying strings to deny.Suffixes specifying strings to deny.deniedSuffixes(List<String> deniedSuffixes) Suffixes specifying strings to deny.from(AllowListConfig prototype) Update this builder from an existing prototype instance.from(AllowListConfig.BuilderBase<?, ?> builder) Update this builder from an existing prototype builder instance.protected voidHandles providers and decorators.toString()protected voidValidates required properties.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Prototype.Builder
buildPrototype, self
-
Constructor Details
-
BuilderBase
protected BuilderBase()Protected to support extensibility.
-
-
Method Details
-
from
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
-
config
Update builder from configuration (node of this type). If a value is present in configuration, it would override currently configured values.- Specified by:
configin interfaceConfigBuilderSupport.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
Allows all strings to match (subject to "deny" conditions). Anallow.allsetting offalsedoes 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:
-
clearAllowed
-
allowed
-
addAllowed
-
addAllowed
-
clearAllowedPrefixes
Clear all allowedPrefixes.- Returns:
- updated builder instance
- See Also:
-
allowedPrefixes
-
addAllowedPrefixes
-
addAllowedPrefix
-
clearAllowedSuffixes
Clear all allowedSuffixes.- Returns:
- updated builder instance
- See Also:
-
allowedSuffixes
-
addAllowedSuffixes
-
addAllowedSuffix
-
clearAllowedPatterns
Clear all allowedPatterns.- Returns:
- updated builder instance
- See Also:
-
allowedPatterns
-
addAllowedPatterns
-
addAllowedPattern
-
clearDenied
-
denied
-
addDenied
-
addDenied
-
clearDeniedPrefixes
Clear all deniedPrefixes.- Returns:
- updated builder instance
- See Also:
-
deniedPrefixes
-
addDeniedPrefixes
-
addDeniedPrefix
-
clearDeniedSuffixes
Clear all deniedSuffixes.- Returns:
- updated builder instance
- See Also:
-
deniedSuffixes
-
addDeniedSuffixes
-
addDeniedSuffix
-
clearDeniedPatterns
Clear all deniedPatterns.- Returns:
- updated builder instance
- See Also:
-
deniedPatterns
-
addDeniedPatterns
-
addDeniedPattern
-
clearAllowedPredicates
Clear all allowedPredicates.- Returns:
- updated builder instance
- See Also:
-
allowedPredicates
-
addAllowedPredicates
-
addAllowed
-
clearDeniedPredicates
Clear all deniedPredicates.- Returns:
- updated builder instance
- See Also:
-
deniedPredicates
-
addDeniedPredicates
-
addDenied
-
allowAll
public boolean allowAll()Allows all strings to match (subject to "deny" conditions). Anallow.allsetting offalsedoes 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:
- whether to allow all strings to match (subject to "deny" conditions)
-
allowed
-
allowedPrefixes
-
allowedSuffixes
-
allowedPatterns
-
denied
-
deniedPrefixes
-
deniedSuffixes
-
deniedPatterns
-
allowedPredicates
-
deniedPredicates
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties. -
config
-