private static class RequestPredicates.PathExtensionPredicate extends java.lang.Object implements RequestPredicate
Modifier and Type | Field and Description |
---|---|
private java.util.function.Predicate<java.lang.String> |
extensionPredicate |
Constructor and Description |
---|
PathExtensionPredicate(java.util.function.Predicate<java.lang.String> extensionPredicate) |
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<java.lang.String> extensionPredicate
public PathExtensionPredicate(java.util.function.Predicate<java.lang.String> extensionPredicate)
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