Interface CookieMatcher
-
public interface CookieMatcherMethods for route matching on cookies.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RouteContinuationisPresent()Matches requests where the specified cookie is present.RouteContinuationvalue(java.util.function.Predicate<HttpCookiePair> predicate)Matches requests where one of the cookies with the specified name matchespredicate.RouteContinuationvalues(java.util.function.Predicate<java.util.Iterator<? extends HttpCookiePair>> predicate)Matches requests where the list of cookies for the specified name matches the predicate.
-
-
-
Method Detail
-
isPresent
RouteContinuation isPresent()
Matches requests where the specified cookie is present.- Returns:
RouteContinuationfor the next steps of building a route.
-
value
RouteContinuation value(java.util.function.Predicate<HttpCookiePair> predicate)
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
RouteContinuation values(java.util.function.Predicate<java.util.Iterator<? extends HttpCookiePair>> predicate)
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.
-
-