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 which, if matched, allows matching for a candidate string.addAllowed
(Predicate<String> predicate) Adds a predicate which, if matched, allows matching for a candidate string.addAllowedPattern
(Pattern pattern) Adds aPattern
which, if matched, allows matching for a candidate string.addAllowedPrefix
(String prefix) Adds a prefix which, if matched, allows matching for a candidate string.addAllowedSuffix
(String suffix) Adds a suffix which, if matched, allows matching for a candidate string.Adds an exact string which, if matched, denies matching for a candidate string.Adds a predicate which, if matched, denies matching for a candidate string.addDeniedPattern
(Pattern pattern) Adds aPattern
which, if matched, denies matching for a candidate string.addDeniedPrefix
(String prefix) Adds a prefix which, if matched, denies matching for a candidate string.addDeniedSuffix
(String suffix) Adds a suffix which, if matched, denies matching for a candidate string.allowAll
(boolean value) Allows all strings to match (subject to "deny" conditions).Adds a list of exact strings any of which, if matched, allows matching for a candidate string.allowedPatterns
(List<Pattern> patterns) Adds a list ofPattern
any of which, if matched, allows matching for a candidate string.allowedPrefixes
(List<String> prefixes) Adds a list of prefixes any of which, if matched, allows matching for a candidate string.allowedSuffixes
(List<String> suffixes) Adds a list of suffixes any of which, if matched, allows matching for a candidate string.build()
Build the instance from this builder.Update builder from configuration.Adds exact strings a match by any of which denies matching for a candidate string.deniedPatterns
(List<Pattern> patterns) Adds patterns a match by any of which denies matching for a candidate string.deniedPrefixes
(List<String> prefixes) Adds prefixes a match by any of which denies matching for a candidate string.deniedSuffixes
(List<String> suffixes) Adds suffixes a match by any of which denies matching for a candidate string.
-
Method Details
-
build
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in 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.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:
value
- whether to allow all strings to match (subject to "deny" conditions)- Returns:
- updated builder
-
allowed
Adds a list of exact strings any of which, if matched, allows matching for a candidate string.- Parameters:
exacts
- which allow matching- Returns:
- updated builder
-
allowedPrefixes
Adds a list of prefixes any of which, if matched, allows matching for a candidate string.- Parameters:
prefixes
- which allow matching- Returns:
- updated builder
-
allowedSuffixes
Adds a list of suffixes any of which, if matched, allows matching for a candidate string.- Parameters:
suffixes
- which allow matching- Returns:
- updated builder
-
allowedPatterns
Adds a list ofPattern
any of which, if matched, allows matching for a candidate string.- Parameters:
patterns
- which allow matching- Returns:
- updated builder
-
addAllowed
Adds an exact string which, if matched, allows matching for a candidate string.- Parameters:
exact
- which allows matching- Returns:
- updated builder
-
addAllowedPattern
Adds aPattern
which, if matched, allows matching for a candidate string.- Parameters:
pattern
- which allows matching- Returns:
- updated builder
-
addAllowedPrefix
Adds a prefix which, if matched, allows matching for a candidate string.- Parameters:
prefix
- which allows matching- Returns:
- updated builder
-
addAllowedSuffix
Adds a suffix which, if matched, allows matching for a candidate string.- Parameters:
suffix
- which allows matching- Returns:
- updated builder
-
addAllowed
Adds a predicate which, if matched, allows matching for a candidate string.- Parameters:
predicate
- which allows matching- Returns:
- updated builder
-
denied
Adds exact strings a match by any of which denies matching for a candidate string.- Parameters:
exacts
- which deny matching- Returns:
- updated builder
-
deniedPrefixes
Adds prefixes a match by any of which denies matching for a candidate string.- Parameters:
prefixes
- which deny matching- Returns:
- updated builder
-
deniedSuffixes
Adds suffixes a match by any of which denies matching for a candidate string.- Parameters:
suffixes
- which deny matching- Returns:
- updated builder
-
deniedPatterns
Adds patterns a match by any of which denies matching for a candidate string.- Parameters:
patterns
- which deny matching- Returns:
- updated builder
-
addDenied
Adds an exact string which, if matched, denies matching for a candidate string.- Parameters:
exact
- match to deny matching- Returns:
- updated builder
-
addDeniedPattern
Adds aPattern
which, if matched, denies matching for a candidate string.- Parameters:
pattern
- to deny matching- Returns:
- updated builder
-
addDeniedPrefix
Adds a prefix which, if matched, denies matching for a candidate string.- Parameters:
prefix
- to deny matching- Returns:
- updated builder
-
addDeniedSuffix
Adds a suffix which, if matched, denies matching for a candidate string.- Parameters:
suffix
- to deny matching- Returns:
- updated builder
-
addDenied
Adds a predicate which, if matched, denies matching for a candidate string.- Parameters:
predicate
- to deny matching- Returns:
- updated builder
-