Interface StringMultiValueMatcher
public interface StringMultiValueMatcher
Extends
CookieMatcher
for things where the value is a string, like headers and query parameters.-
Method Summary
Modifier and TypeMethodDescriptionfirstValue
(CharSequence value) Matches requests where the first value in the request is equal tovalue
.firstValue
(Predicate<CharSequence> predicate) Matches requests where the first value in the request matchespredicate
.firstValueMatches
(String regex) Matches requests where the first value in the request matches the regexregex
.firstValueMatches
(Pattern regex) Matches requests where the first value in the request matches the regexregex
.Matches requests where the list of values is not empty.values
(Predicate<Iterator<? extends CharSequence>> predicate) Matches requests where the list of values matches the predicate.
-
Method Details
-
isPresent
RouteContinuation isPresent()Matches requests where the list of values is not empty.- Returns:
RouteContinuation
for the next steps of building a route.
-
firstValue
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
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
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
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
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.
-