Interface StringMultiValueMatcher
-
public interface StringMultiValueMatcherExtendsCookieMatcherfor 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 RouteContinuationfirstValue(java.lang.CharSequence value)Matches requests where the first value in the request is equal tovalue.RouteContinuationfirstValue(java.util.function.Predicate<java.lang.CharSequence> predicate)Matches requests where the first value in the request matchespredicate.RouteContinuationfirstValueMatches(java.lang.String regex)Matches requests where the first value in the request matches the regexregex.RouteContinuationfirstValueMatches(java.util.regex.Pattern regex)Matches requests where the first value in the request matches the regexregex.RouteContinuationisPresent()Matches requests where the list of values is not empty.RouteContinuationvalues(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:
RouteContinuationfor 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:
RouteContinuationfor 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- thePredicateto match against the values.- Returns:
RouteContinuationfor 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- thePredicateto match against the list of values.- Returns:
RouteContinuationfor 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:
RouteContinuationfor 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:
RouteContinuationfor the next steps of building a route.
-
-