Interface CookieMatcher
public interface CookieMatcher
Methods for route matching on cookies.
-
Method Summary
Modifier and TypeMethodDescriptionMatches requests where the specified cookie is present.value(Predicate<HttpCookiePair> predicate) Matches requests where one of the cookies with the specified name matchespredicate.values(Predicate<Iterator<? extends HttpCookiePair>> predicate) Matches requests where the list of cookies for the specified name matches the predicate.
-
Method Details
-
isPresent
RouteContinuation isPresent()Matches requests where the specified cookie is present.- Returns:
RouteContinuationfor the next steps of building a route.
-
value
Matches requests where one of the cookies with the specified name matchespredicate.- Parameters:
predicate- thePredicateto match against the values.- Returns:
RouteContinuationfor the next steps of building a route.
-
values
Matches requests where the list of cookies for the specified name matches the predicate.- Parameters:
predicate- thePredicateto match against the list of cookies.- Returns:
RouteContinuationfor the next steps of building a route.
-