Package io.helidon.common.configurable
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> 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.Deprecated.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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.helidon.builder.api.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
Deprecated.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
-
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
Clear all allowed.- Returns:
- updated builder instance
- See Also:
-
allowed
Exact strings to allow.- Parameters:
allowed- exact strings to allow- Returns:
- updated builder instance
- See Also:
-
addAllowed
Exact strings to allow.- Parameters:
allowed- exact strings to allow- Returns:
- updated builder instance
- See Also:
-
addAllowed
Exact strings to allow.- Parameters:
allowed- add single exact strings to allow- Returns:
- updated builder instance
- See Also:
-
clearAllowedPrefixes
Clear all allowedPrefixes.- Returns:
- updated builder instance
- See Also:
-
allowedPrefixes
Prefixes specifying strings to allow.- Parameters:
allowedPrefixes- prefixes which allow matching- Returns:
- updated builder instance
- See Also:
-
addAllowedPrefixes
Prefixes specifying strings to allow.- Parameters:
allowedPrefixes- prefixes which allow matching- Returns:
- updated builder instance
- See Also:
-
addAllowedPrefix
Prefixes specifying strings to allow.- Parameters:
allowedPrefix- add single prefixes which allow matching- Returns:
- updated builder instance
- See Also:
-
clearAllowedSuffixes
Clear all allowedSuffixes.- Returns:
- updated builder instance
- See Also:
-
allowedSuffixes
Suffixes specifying strings to allow.- Parameters:
allowedSuffixes- suffixes which allow matching- Returns:
- updated builder instance
- See Also:
-
addAllowedSuffixes
Suffixes specifying strings to allow.- Parameters:
allowedSuffixes- suffixes which allow matching- Returns:
- updated builder instance
- See Also:
-
addAllowedSuffix
Suffixes specifying strings to allow.- Parameters:
allowedSuffix- add single suffixes which allow matching- Returns:
- updated builder instance
- See Also:
-
clearAllowedPatterns
Clear all allowedPatterns.- Returns:
- updated builder instance
- See Also:
-
allowedPatterns
Patterns specifying strings to allow.- Parameters:
allowedPatterns- patterns which allow matching- Returns:
- updated builder instance
- See Also:
-
addAllowedPatterns
Patterns specifying strings to allow.- Parameters:
allowedPatterns- patterns which allow matching- Returns:
- updated builder instance
- See Also:
-
addAllowedPattern
Patterns specifying strings to allow.- Parameters:
allowedPattern- add single patterns which allow matching- Returns:
- updated builder instance
- See Also:
-
clearDenied
Clear all denied.- Returns:
- updated builder instance
- See Also:
-
denied
Exact strings to deny.- Parameters:
denied- exact strings to deny- Returns:
- updated builder instance
- See Also:
-
addDenied
Exact strings to deny.- Parameters:
denied- exact strings to deny- Returns:
- updated builder instance
- See Also:
-
addDenied
Exact strings to deny.- Parameters:
denied- add single exact strings to deny- Returns:
- updated builder instance
- See Also:
-
clearDeniedPrefixes
Clear all deniedPrefixes.- Returns:
- updated builder instance
- See Also:
-
deniedPrefixes
Prefixes specifying strings to deny.- Parameters:
deniedPrefixes- prefixes which deny matching- Returns:
- updated builder instance
- See Also:
-
addDeniedPrefixes
Prefixes specifying strings to deny.- Parameters:
deniedPrefixes- prefixes which deny matching- Returns:
- updated builder instance
- See Also:
-
addDeniedPrefix
Prefixes specifying strings to deny.- Parameters:
deniedPrefix- add single prefixes which deny matching- Returns:
- updated builder instance
- See Also:
-
clearDeniedSuffixes
Clear all deniedSuffixes.- Returns:
- updated builder instance
- See Also:
-
deniedSuffixes
Suffixes specifying strings to deny.- Parameters:
deniedSuffixes- suffixes which deny matching- Returns:
- updated builder instance
- See Also:
-
addDeniedSuffixes
Suffixes specifying strings to deny.- Parameters:
deniedSuffixes- suffixes which deny matching- Returns:
- updated builder instance
- See Also:
-
addDeniedSuffix
Suffixes specifying strings to deny.- Parameters:
deniedSuffix- add single suffixes which deny matching- Returns:
- updated builder instance
- See Also:
-
clearDeniedPatterns
Clear all deniedPatterns.- Returns:
- updated builder instance
- See Also:
-
deniedPatterns
Patterns specifying strings to deny.- Parameters:
deniedPatterns- patterns which deny matching- Returns:
- updated builder instance
- See Also:
-
addDeniedPatterns
Patterns specifying strings to deny.- Parameters:
deniedPatterns- patterns which deny matching- Returns:
- updated builder instance
- See Also:
-
addDeniedPattern
Patterns specifying strings to deny.- Parameters:
deniedPattern- add single patterns which deny matching- Returns:
- updated builder instance
- See Also:
-
clearAllowedPredicates
Clear all allowedPredicates.- Returns:
- updated builder instance
- See Also:
-
allowedPredicates
Allowed predicates.- Parameters:
allowedPredicates- predicates to allow- Returns:
- updated builder instance
- See Also:
-
addAllowedPredicates
Allowed predicates.- Parameters:
allowedPredicates- predicates to allow- Returns:
- updated builder instance
- See Also:
-
addAllowed
Allowed predicates.- Parameters:
allowed- add single predicates to allow- Returns:
- updated builder instance
- See Also:
-
clearDeniedPredicates
Clear all deniedPredicates.- Returns:
- updated builder instance
- See Also:
-
deniedPredicates
Deny predicates.- Parameters:
deniedPredicates- predicates to deny- Returns:
- updated builder instance
- See Also:
-
addDeniedPredicates
Deny predicates.- Parameters:
deniedPredicates- predicates to deny- Returns:
- updated builder instance
- See Also:
-
addDenied
Deny predicates.- Parameters:
denied- add single predicates to deny- Returns:
- updated builder instance
- See Also:
-
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
Exact strings to allow.- Returns:
- exact strings to allow
-
allowedPrefixes
Prefixes specifying strings to allow.- Returns:
- prefixes which allow matching
-
allowedSuffixes
Suffixes specifying strings to allow.- Returns:
- suffixes which allow matching
-
allowedPatterns
Patterns specifying strings to allow.- Returns:
- patterns which allow matching
-
denied
Exact strings to deny.- Returns:
- exact strings to deny
-
deniedPrefixes
Prefixes specifying strings to deny.- Returns:
- prefixes which deny matching
-
deniedSuffixes
Suffixes specifying strings to deny.- Returns:
- suffixes which deny matching
-
deniedPatterns
Patterns specifying strings to deny.- Returns:
- patterns which deny matching
-
allowedPredicates
Allowed predicates.- Returns:
- predicates to allow
-
deniedPredicates
Deny predicates.- Returns:
- predicates to deny
-
toString
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties. -
config
Configuration used to configure this instance.- Returns:
- config instance
-
config(io.helidon.config.Config)