public interface StringMultiValueMatcher
CookieMatcher
for things where the value is a string, like headers and query parameters.Modifier and Type | Method and Description |
---|---|
RouteContinuation |
firstValue(java.lang.CharSequence value)
Matches requests where the first value in the request is equal to
value . |
RouteContinuation |
firstValue(java.util.function.Predicate<java.lang.CharSequence> predicate)
Matches requests where the first value in the request matches
predicate . |
RouteContinuation |
firstValueMatches(java.util.regex.Pattern regex)
Matches requests where the first value in the request matches the regex
regex . |
RouteContinuation |
firstValueMatches(java.lang.String regex)
Matches requests where the first value in the request matches the regex
regex . |
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.
|
RouteContinuation isPresent()
RouteContinuation
for the next steps of building a route.RouteContinuation firstValue(java.lang.CharSequence value)
value
.value
- the value to match against.RouteContinuation
for the next steps of building a route.RouteContinuation firstValue(java.util.function.Predicate<java.lang.CharSequence> predicate)
predicate
.predicate
- the Predicate
to match against the values.RouteContinuation
for the next steps of building a route.RouteContinuation values(java.util.function.Predicate<java.util.Iterator<? extends java.lang.CharSequence>> predicate)
predicate
- the Predicate
to match against the list of values.RouteContinuation
for the next steps of building a route.RouteContinuation firstValueMatches(java.lang.String regex)
regex
.regex
- the regex to match against the values.RouteContinuation
for the next steps of building a route.RouteContinuation firstValueMatches(java.util.regex.Pattern regex)
regex
.regex
- the regex to match against the values.RouteContinuation
for the next steps of building a route.