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> 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
.-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
Generated implementation of the prototype, can be extended by descendant prototype implementations. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAllowed
(String allowed) Exact strings to allow.addAllowed
(Predicate<String> allowed) Allowed predicates.addAllowed
(List<? extends String> allowed) Exact strings to allow.addAllowedPattern
(Pattern allowedPattern) Pattern
s specifying strings to allow.addAllowedPatterns
(List<? extends Pattern> allowedPatterns) Pattern
s specifying strings to allow.addAllowedPredicates
(List<Predicate<String>> allowedPredicates) Allowed predicates.addAllowedPrefix
(String allowedPrefix) Prefixes specifying strings to allow.addAllowedPrefixes
(List<? extends String> allowedPrefixes) Prefixes specifying strings to allow.addAllowedSuffix
(String allowedSuffix) Suffixes specifying strings to allow.addAllowedSuffixes
(List<? extends 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<? extends String> deniedPrefixes) Prefixes specifying strings to deny.addDeniedSuffix
(String deniedSuffix) Suffixes specifying strings to deny.addDeniedSuffixes
(List<? extends String> deniedSuffixes) Suffixes specifying strings to deny.boolean
allowAll()
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.Pattern
s specifying strings to allow.allowedPatterns
(List<? extends Pattern> allowedPatterns) Pattern
s specifying strings to allow.Allowed predicates.allowedPredicates
(List<Predicate<String>> allowedPredicates) Allowed predicates.Prefixes specifying strings to allow.allowedPrefixes
(List<? extends String> allowedPrefixes) Prefixes specifying strings to allow.Suffixes specifying strings to allow.allowedSuffixes
(List<? extends String> allowedSuffixes) Suffixes specifying strings to allow.config()
If this instance was configured, this would be the config instance used.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<? extends String> deniedPrefixes) Prefixes specifying strings to deny.Suffixes specifying strings to deny.deniedSuffixes
(List<? extends 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 void
Handles providers and decorators.toString()
protected void
Validates required properties.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.helidon.builder.api.Prototype.Builder
buildPrototype, self
Methods inherited from interface io.helidon.builder.api.Prototype.ConfiguredBuilder
discoverService, discoverServices
-
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:
config
in interfacePrototype.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.all
setting offalse
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
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
- exact strings to allow- 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
- prefixes which allow matching- 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
- suffixes which allow matching- Returns:
- updated builder instance
- See Also:
-
allowedPatterns
Pattern
s specifying strings to allow.- Parameters:
allowedPatterns
- patterns which allow matching- Returns:
- updated builder instance
- See Also:
-
addAllowedPatterns
Pattern
s specifying strings to allow.- Parameters:
allowedPatterns
- patterns which allow matching- Returns:
- updated builder instance
- See Also:
-
addAllowedPattern
Pattern
s specifying strings to allow.- Parameters:
allowedPattern
- patterns which allow matching- 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
- exact strings to deny- 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
- prefixes which deny matching- 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
- suffixes which deny matching- 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
- patterns which deny matching- 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
- predicates to allow- 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
- predicates to deny- Returns:
- updated builder instance
- See Also:
-
allowAll
public boolean allowAll()Allows all strings to match (subject to "deny" conditions). Anallow.all
setting offalse
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
Exact strings to allow.- Returns:
- the allowed
-
allowedPrefixes
Prefixes specifying strings to allow.- Returns:
- the allowed prefixes
-
allowedSuffixes
Suffixes specifying strings to allow.- Returns:
- the allowed suffixes
-
allowedPatterns
Pattern
s specifying strings to allow.- Returns:
- the allowed patterns
-
denied
Exact strings to deny.- Returns:
- the denied
-
deniedPrefixes
Prefixes specifying strings to deny.- Returns:
- the denied prefixes
-
deniedSuffixes
Suffixes specifying strings to deny.- Returns:
- the denied suffixes
-
deniedPatterns
Patterns specifying strings to deny.- Returns:
- the denied patterns
-
allowedPredicates
Allowed predicates.- Returns:
- the allowed predicates
-
deniedPredicates
Deny predicates.- Returns:
- the denied predicates
-
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
-
preBuildPrototype
protected void preBuildPrototype()Handles providers and decorators. -
validatePrototype
protected void validatePrototype()Validates required properties.
-