Class Rules.pathMatch.prefixPath
- Enclosing class:
Rules.pathMatch
-
Method Summary
Modifier and TypeMethodDescriptionstatic Matcher
contains
(CharSequence substring) Matches when a request prefix path contains a given character sequence, case-sensitive.static Matcher
contains
(CharSequence substring, Rule... rules) Matches when a request prefix path contains a given character sequence, case-sensitive.static Matcher
contains
(CharSequence substring, Rule[] rules, Rule... otherwise) Matches when a request prefix path contains a given character sequence, case-sensitive.static Matcher
contains
(CharSequence substring, Iterable<? extends Rule> rules) Matches when a request prefix path contains a given character sequence, case-sensitive.static Matcher
contains
(CharSequence substring, Iterable<? extends Rule> rules, Iterable<? extends Rule> otherwise) Matches when a request prefix path contains a given character sequence, case-sensitive.static Matcher
Matches when a request prefix path ends with a given string, case-sensitive.static Matcher
Matches when a request prefix path ends with a given string, case-sensitive.static Matcher
Matches when a request prefix path ends with a given string, case-sensitive.static Matcher
Matches when a request prefix path ends with a given string, case-sensitive.static Matcher
Matches when a request prefix path ends with a given string, case-sensitive.static Matcher
Matches when a request prefix path is equal to a given string, case-sensitive.static Matcher
Matches when a request prefix path is equal to a given string, case-sensitive.static Matcher
Matches when a request prefix path is equal to a given string, case-sensitive.static Matcher
Matches when a request prefix path is equal to a given string, case-sensitive.static Matcher
Matches when a request prefix path is equal to a given string, case-sensitive.static Matcher
equals
(CharSequence target) Matches when a request prefix path is equal to a given character sequence, case-sensitive.static Matcher
equals
(CharSequence target, Rule... rules) Matches when a request prefix path is equal to a given character sequence, case-sensitive.static Matcher
equals
(CharSequence target, Rule[] rules, Rule... otherwise) Matches when a request prefix path is equal to a given character sequence, case-sensitive.static Matcher
equals
(CharSequence target, Iterable<? extends Rule> rules) Matches when a request prefix path is equal to a given character sequence, case-sensitive.static Matcher
Matches when a request prefix path is equal to a given character sequence, case-sensitive.static Matcher
Matches when a request prefix path is equal to a given string, case-sensitive.static Matcher
Matches when a request prefix path is equal to a given string, case-sensitive.static Matcher
Matches when a request prefix path is equal to a given string, case-sensitive.static Matcher
Matches when a request prefix path is equal to a given string, case-sensitive.static Matcher
Matches when a request prefix path is equal to a given string, case-sensitive.static Matcher
equalsIgnoreCase
(String target) Matches when a request prefix path is equal to a given string, case-insensitive.static Matcher
equalsIgnoreCase
(String target, Rule... rules) Matches when a request prefix path is equal to a given string, case-insensitive.static Matcher
equalsIgnoreCase
(String target, Rule[] rules, Rule... otherwise) Matches when a request prefix path is equal to a given string, case-insensitive.static Matcher
equalsIgnoreCase
(String target, Iterable<? extends Rule> rules) Matches when a request prefix path is equal to a given string, case-insensitive.static Matcher
Matches when a request prefix path is equal to a given string, case-insensitive.static Matcher
matches
(WildcardPatternMatcher wildcardPattern) Matches when a request prefix path matches a givenWildcardPatternMatcher
.static Matcher
matches
(WildcardPatternMatcher wildcardPattern, Rule... rules) Matches when a request prefix path matches a givenWildcardPatternMatcher
.static Matcher
matches
(WildcardPatternMatcher wildcardPattern, Rule[] rules, Rule... otherwise) Matches when a request prefix path matches a givenWildcardPatternMatcher
.static Matcher
matches
(WildcardPatternMatcher wildcardPattern, Iterable<? extends Rule> rules) Matches when a request prefix path matches a givenWildcardPatternMatcher
.static Matcher
matches
(WildcardPatternMatcher wildcardPattern, Iterable<? extends Rule> rules, Iterable<? extends Rule> otherwise) Matches when a request prefix path matches a givenWildcardPatternMatcher
.static Matcher
Matches when a request prefix path matches a given regular expression.static Matcher
Matches when a request prefix path matches a given regular expression.static Matcher
Matches when a request prefix path matches a given regular expression.static Matcher
Matches when a request prefix path matches a given regular expression.static Matcher
Matches when a request prefix path matches a given regular expression.static Matcher
startsWith
(String prefix) Matches when a request prefix path starts with a given string, case-sensitive.static Matcher
startsWith
(String prefix, Rule... rules) Matches when a request prefix path starts with a given string, case-sensitive.static Matcher
startsWith
(String prefix, Rule[] rules, Rule... otherwise) Matches when a request prefix path starts with a given string, case-sensitive.static Matcher
startsWith
(String prefix, Iterable<? extends Rule> rules) Matches when a request prefix path starts with a given string, case-sensitive.static Matcher
Matches when a request prefix path starts with a given string, case-sensitive.
-
Method Details
-
startsWith
Matches when a request prefix path starts with a given string, case-sensitive. Matches when prefix is empty.- See Also:
-
startsWith
Matches when a request prefix path starts with a given string, case-sensitive. Matches when prefix is empty.- Parameters:
rules
- Invoked only when matched.- See Also:
-
startsWith
public static Matcher startsWith(String prefix, Iterable<? extends Rule> rules, Iterable<? extends Rule> otherwise) Matches when a request prefix path starts with a given string, case-sensitive. Matches when prefix is empty.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.- See Also:
-
startsWith
Matches when a request prefix path starts with a given string, case-sensitive. Matches when prefix is empty.- Parameters:
rules
- Invoked only when matched.- See Also:
-
startsWith
Matches when a request prefix path starts with a given string, case-sensitive. Matches when prefix is empty.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.- See Also:
-
endsWith
Matches when a request prefix path ends with a given string, case-sensitive. Matches when suffix is empty.- See Also:
-
endsWith
Matches when a request prefix path ends with a given string, case-sensitive. Matches when suffix is empty.- Parameters:
rules
- Invoked only when matched.- See Also:
-
endsWith
public static Matcher endsWith(String suffix, Iterable<? extends Rule> rules, Iterable<? extends Rule> otherwise) Matches when a request prefix path ends with a given string, case-sensitive. Matches when suffix is empty.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.- See Also:
-
endsWith
Matches when a request prefix path ends with a given string, case-sensitive. Matches when suffix is empty.- Parameters:
rules
- Invoked only when matched.- See Also:
-
endsWith
Matches when a request prefix path ends with a given string, case-sensitive. Matches when suffix is empty.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.- See Also:
-
contains
Matches when a request prefix path contains a given character sequence, case-sensitive. Matches when substring is empty.- See Also:
-
contains
Matches when a request prefix path contains a given character sequence, case-sensitive. Matches when substring is empty.- Parameters:
rules
- Invoked only when matched.- See Also:
-
contains
public static Matcher contains(CharSequence substring, Iterable<? extends Rule> rules, Iterable<? extends Rule> otherwise) Matches when a request prefix path contains a given character sequence, case-sensitive. Matches when substring is empty.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.- See Also:
-
contains
Matches when a request prefix path contains a given character sequence, case-sensitive. Matches when substring is empty.- Parameters:
rules
- Invoked only when matched.- See Also:
-
contains
Matches when a request prefix path contains a given character sequence, case-sensitive. Matches when substring is empty.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.- See Also:
-
equals
Matches when a request prefix path is equal to a given string, case-sensitive.- See Also:
-
equals
Matches when a request prefix path is equal to a given string, case-sensitive.- Parameters:
rules
- Invoked only when matched.- See Also:
-
equals
public static Matcher equals(Path target, Iterable<? extends Rule> rules, Iterable<? extends Rule> otherwise) Matches when a request prefix path is equal to a given string, case-sensitive.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.- See Also:
-
equals
Matches when a request prefix path is equal to a given string, case-sensitive.- Parameters:
rules
- Invoked only when matched.- See Also:
-
equals
Matches when a request prefix path is equal to a given string, case-sensitive.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.- See Also:
-
equals
Matches when a request prefix path is equal to a given string, case-sensitive.- See Also:
-
equals
Matches when a request prefix path is equal to a given string, case-sensitive.- Parameters:
rules
- Invoked only when matched.- See Also:
-
equals
public static Matcher equals(String target, Iterable<? extends Rule> rules, Iterable<? extends Rule> otherwise) Matches when a request prefix path is equal to a given string, case-sensitive.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.- See Also:
-
equals
Matches when a request prefix path is equal to a given string, case-sensitive.- Parameters:
rules
- Invoked only when matched.- See Also:
-
equals
Matches when a request prefix path is equal to a given string, case-sensitive.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.- See Also:
-
equals
Matches when a request prefix path is equal to a given character sequence, case-sensitive.- See Also:
-
equals
Matches when a request prefix path is equal to a given character sequence, case-sensitive.- Parameters:
rules
- Invoked only when matched.- See Also:
-
equals
public static Matcher equals(CharSequence target, Iterable<? extends Rule> rules, Iterable<? extends Rule> otherwise) Matches when a request prefix path is equal to a given character sequence, case-sensitive.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.- See Also:
-
equals
Matches when a request prefix path is equal to a given character sequence, case-sensitive.- Parameters:
rules
- Invoked only when matched.- See Also:
-
equals
Matches when a request prefix path is equal to a given character sequence, case-sensitive.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.- See Also:
-
equalsIgnoreCase
Matches when a request prefix path is equal to a given string, case-insensitive.- See Also:
-
equalsIgnoreCase
Matches when a request prefix path is equal to a given string, case-insensitive.- Parameters:
rules
- Invoked only when matched.- See Also:
-
equalsIgnoreCase
public static Matcher equalsIgnoreCase(String target, Iterable<? extends Rule> rules, Iterable<? extends Rule> otherwise) Matches when a request prefix path is equal to a given string, case-insensitive.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.- See Also:
-
equalsIgnoreCase
Matches when a request prefix path is equal to a given string, case-insensitive.- Parameters:
rules
- Invoked only when matched.- See Also:
-
equalsIgnoreCase
Matches when a request prefix path is equal to a given string, case-insensitive.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.- See Also:
-
matches
Matches when a request prefix path matches a given regular expression.- See Also:
-
matches
Matches when a request prefix path matches a given regular expression.- Parameters:
rules
- Invoked only when matched.- See Also:
-
matches
public static Matcher matches(Pattern pattern, Iterable<? extends Rule> rules, Iterable<? extends Rule> otherwise) Matches when a request prefix path matches a given regular expression.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.- See Also:
-
matches
Matches when a request prefix path matches a given regular expression.- Parameters:
rules
- Invoked only when matched.- See Also:
-
matches
Matches when a request prefix path matches a given regular expression.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.- See Also:
-
matches
Matches when a request prefix path matches a givenWildcardPatternMatcher
.WildcardPatternMatcher
can significantly outperformPattern
, especially in suffix matching.TODO: Move
WildcardPatternMatcher
to own microproject and remove dependency on larger ao-hodgepodge project.- See Also:
-
matches
public static Matcher matches(WildcardPatternMatcher wildcardPattern, Iterable<? extends Rule> rules) Matches when a request prefix path matches a givenWildcardPatternMatcher
.WildcardPatternMatcher
can significantly outperformPattern
, especially in suffix matching.- Parameters:
rules
- Invoked only when matched.- See Also:
-
matches
public static Matcher matches(WildcardPatternMatcher wildcardPattern, Iterable<? extends Rule> rules, Iterable<? extends Rule> otherwise) Matches when a request prefix path matches a givenWildcardPatternMatcher
.WildcardPatternMatcher
can significantly outperformPattern
, especially in suffix matching.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.- See Also:
-
matches
Matches when a request prefix path matches a givenWildcardPatternMatcher
.WildcardPatternMatcher
can significantly outperformPattern
, especially in suffix matching.- Parameters:
rules
- Invoked only when matched.- See Also:
-
matches
public static Matcher matches(WildcardPatternMatcher wildcardPattern, Rule[] rules, Rule... otherwise) Matches when a request prefix path matches a givenWildcardPatternMatcher
.WildcardPatternMatcher
can significantly outperformPattern
, especially in suffix matching.- Parameters:
rules
- Invoked only when matched.otherwise
- Invoked only when not matched.- See Also:
-