Package io.helidon.common.configurable
Class AllowList.Builder
java.lang.Object
io.helidon.common.configurable.AllowList.Builder
- All Implemented Interfaces:
Builder<AllowList.Builder,,AllowList> Supplier<AllowList>
- Enclosing interface:
AllowList
public static final class AllowList.Builder
extends Object
implements Builder<AllowList.Builder,AllowList>
Fluent API builder for
AllowList.-
Method Summary
Modifier and TypeMethodDescriptionaddAllowed(String exact) Adds an exact string to allow.addAllowed(Predicate<String> predicate) Adds a predicate specifying strings to allow.addAllowedPattern(Pattern pattern) Adds aPatternspecifying strings to allow.addAllowedPrefix(String prefix) Adds a prefix specifying strings to allow.addAllowedSuffix(String suffix) Adds a suffix specifying strings to allow.Adds an exact string to deny.Adds a predicate which specifies strings to deny.addDeniedPattern(Pattern pattern) Adds aPatternwhich specifies strings to deny.addDeniedPrefix(String prefix) Adds a prefix which specifies strings to deny.addDeniedSuffix(String suffix) Adds a suffix which specifies strings to deny.allowAll(boolean value) Allows all strings to match (subject to "deny" conditions).Exact strings to allow.allowedPatterns(List<Pattern> patterns) Patterns specifying strings to allow.allowedPrefixes(List<String> prefixes) Prefixes specifying strings to allow.allowedSuffixes(List<String> suffixes) Suffixes specifying strings to allow.build()Build the instance from this builder.Update builder from configuration.Exact strings to deny.deniedPatterns(List<Pattern> patterns) Patterns specifying strings to deny.deniedPrefixes(List<String> prefixes) Prefixes specifying strings to deny.deniedSuffixes(List<String> suffixes) Suffixes specifying strings to deny.
-
Method Details
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<AllowList.Builder,AllowList> - Returns:
- instance of the built type
-
config
Update builder from configuration.- Parameters:
config- configuration to use- Returns:
- updated builder
-
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:
value- whether to allow all strings to match (subject to "deny" conditions)- Returns:
- updated builder
-
allowed
Exact strings to allow.- Parameters:
exacts- which allow matching- Returns:
- updated builder
-
allowedPrefixes
Prefixes specifying strings to allow.- Parameters:
prefixes- which allow matching- Returns:
- updated builder
-
allowedSuffixes
Suffixes specifying strings to allow.- Parameters:
suffixes- which allow matching- Returns:
- updated builder
-
allowedPatterns
Patterns specifying strings to allow.- Parameters:
patterns- which allow matching- Returns:
- updated builder
-
addAllowed
Adds an exact string to allow.- Parameters:
exact- which allows matching- Returns:
- updated builder
-
addAllowedPattern
Adds aPatternspecifying strings to allow.- Parameters:
pattern- which allows matching- Returns:
- updated builder
-
addAllowedPrefix
Adds a prefix specifying strings to allow.- Parameters:
prefix- which allows matching- Returns:
- updated builder
-
addAllowedSuffix
Adds a suffix specifying strings to allow.- Parameters:
suffix- which allows matching- Returns:
- updated builder
-
addAllowed
Adds a predicate specifying strings to allow.- Parameters:
predicate- which allows matching- Returns:
- updated builder
-
denied
Exact strings to deny.- Parameters:
exacts- which deny matching- Returns:
- updated builder
-
deniedPrefixes
Prefixes specifying strings to deny.- Parameters:
prefixes- which deny matching- Returns:
- updated builder
-
deniedSuffixes
Suffixes specifying strings to deny.- Parameters:
suffixes- which deny matching- Returns:
- updated builder
-
deniedPatterns
Patterns specifying strings to deny.- Parameters:
patterns- which deny matching- Returns:
- updated builder
-
addDenied
Adds an exact string to deny.- Parameters:
exact- match to deny matching- Returns:
- updated builder
-
addDeniedPattern
Adds aPatternwhich specifies strings to deny.- Parameters:
pattern- to deny matching- Returns:
- updated builder
-
addDeniedPrefix
Adds a prefix which specifies strings to deny.- Parameters:
prefix- to deny matching- Returns:
- updated builder
-
addDeniedSuffix
Adds a suffix which specifies strings to deny.- Parameters:
suffix- to deny matching- Returns:
- updated builder
-
addDenied
Adds a predicate which specifies strings to deny.- Parameters:
predicate- to deny matching- Returns:
- updated builder
-