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(CharSequence value)
Matches requests where the first value in the request is equal to
value. |
RouteContinuation |
firstValue(Predicate<CharSequence> predicate)
Matches requests where the first value in the request matches
predicate. |
RouteContinuation |
firstValueMatches(Pattern regex)
Matches requests where the first value in the request matches the regex
regex. |
RouteContinuation |
firstValueMatches(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(Predicate<Iterator<? extends 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(CharSequence value)
value.value - the value to match against.RouteContinuation for the next steps of building a route.RouteContinuation firstValue(Predicate<CharSequence> predicate)
predicate.predicate - the Predicate to match against the values.RouteContinuation for the next steps of building a route.RouteContinuation values(Predicate<Iterator<? extends CharSequence>> predicate)
predicate - the Predicate to match against the list of values.RouteContinuation for the next steps of building a route.RouteContinuation firstValueMatches(String regex)
regex.regex - the regex to match against the values.RouteContinuation for the next steps of building a route.RouteContinuation firstValueMatches(Pattern regex)
regex.regex - the regex to match against the values.RouteContinuation for the next steps of building a route.