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