public interface CookieMatcher
Modifier and Type | Method and 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 matches
predicate . |
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.
|
RouteContinuation isPresent()
RouteContinuation
for the next steps of building a route.RouteContinuation value(java.util.function.Predicate<HttpCookiePair> predicate)
predicate
.predicate
- the Predicate
to match against the values.RouteContinuation
for the next steps of building a route.RouteContinuation values(java.util.function.Predicate<java.util.Iterator<? extends HttpCookiePair>> predicate)
predicate
- the Predicate
to match against the list of cookies.RouteContinuation
for the next steps of building a route.