private static class RequestPredicates.HeadersPredicate extends java.lang.Object implements RequestPredicate
Modifier and Type | Field and Description |
---|---|
private java.util.function.Predicate<ServerRequest.Headers> |
headersPredicate |
Constructor and Description |
---|
HeadersPredicate(java.util.function.Predicate<ServerRequest.Headers> headersPredicate) |
Modifier and Type | Method and Description |
---|---|
boolean |
test(ServerRequest request)
Evaluate this predicate on the given request.
|
java.lang.String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
and, negate, nest, or
private final java.util.function.Predicate<ServerRequest.Headers> headersPredicate
public HeadersPredicate(java.util.function.Predicate<ServerRequest.Headers> headersPredicate)
public boolean test(ServerRequest request)
RequestPredicate
test
in interface RequestPredicate
request
- the request to match againsttrue
if the request matches the predicate; false
otherwisepublic java.lang.String toString()
toString
in class java.lang.Object