Interface StringMultiValueMatcher
-
public interface StringMultiValueMatcher
ExtendsCookieMatcher
for things where the value is a string, like headers and query parameters.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RouteContinuation
firstValue(java.lang.CharSequence value)
Matches requests where the first value in the request is equal tovalue
.RouteContinuation
firstValue(java.util.function.Predicate<java.lang.CharSequence> predicate)
Matches requests where the first value in the request matchespredicate
.RouteContinuation
firstValueMatches(java.lang.String regex)
Matches requests where the first value in the request matches the regexregex
.RouteContinuation
firstValueMatches(java.util.regex.Pattern regex)
Matches requests where the first value in the request matches the regexregex
.RouteContinuation
isPresent()
Matches requests where the list of values is not empty.RouteContinuation
values(java.util.function.Predicate<java.util.Iterator<? extends java.lang.CharSequence>> predicate)
Matches requests where the list of values matches the predicate.
-
-
-
Method Detail
-
isPresent
RouteContinuation isPresent()
Matches requests where the list of values is not empty.- Returns:
RouteContinuation
for the next steps of building a route.
-
firstValue
RouteContinuation firstValue(java.lang.CharSequence value)
Matches requests where the first value in the request is equal tovalue
.- Parameters:
value
- the value to match against.- Returns:
RouteContinuation
for the next steps of building a route.
-
firstValue
RouteContinuation firstValue(java.util.function.Predicate<java.lang.CharSequence> predicate)
Matches requests where the first value in the request matchespredicate
.- Parameters:
predicate
- thePredicate
to match against the values.- Returns:
RouteContinuation
for the next steps of building a route.
-
values
RouteContinuation values(java.util.function.Predicate<java.util.Iterator<? extends java.lang.CharSequence>> predicate)
Matches requests where the list of values matches the predicate.- Parameters:
predicate
- thePredicate
to match against the list of values.- Returns:
RouteContinuation
for the next steps of building a route.
-
firstValueMatches
RouteContinuation firstValueMatches(java.lang.String regex)
Matches requests where the first value in the request matches the regexregex
.- Parameters:
regex
- the regex to match against the values.- Returns:
RouteContinuation
for the next steps of building a route.
-
firstValueMatches
RouteContinuation firstValueMatches(java.util.regex.Pattern regex)
Matches requests where the first value in the request matches the regexregex
.- Parameters:
regex
- the regex to match against the values.- Returns:
RouteContinuation
for the next steps of building a route.
-
-