ServerRequest.
Instances of this function that evaluate on common request properties
can be found in RequestPredicates.
RequestPredicates, RouterFunctions#route(RequestPredicate, HandlerFunction), RouterFunctions#nest(RequestPredicate, RouterFunction)
| Modifier and Type | Method and Description |
|---|---|
| public default void | |
| public default RequestPredicate | Returns: a predicate composed of this predicate AND theother predicatea predicate that will be logically-ANDed with this predicate other)Return a composed request predicate that tests against both this predicate AND
the |
| public default RequestPredicate | Returns: a predicate that represents the logical negation of this predicateReturn a predicate that represents the logical negation of this predicate. |
| public default Optional | Returns: the nested requestthe request to be nested request)Transform the given request into a request used for a nested route. |
| public default RequestPredicate | Returns: a predicate composed of this predicate OR theother predicatea predicate that will be logically-ORed with this predicate other)Return a composed request predicate that tests against both this predicate OR
the |
| public boolean | Returns: true if the request matches the predicate; false otherwisethe request to match against request)Evaluate this predicate on the given request. |
| accept | back to summary |
|---|---|
| public default void accept(RequestPredicates. Accept the given visitor. Default implementation calls
| |
| and | back to summary |
|---|---|
| public default RequestPredicate and(RequestPredicate other) Return a composed request predicate that tests against both this predicate AND
the
| |
| negate | back to summary |
|---|---|
| public default RequestPredicate negate() Return a predicate that represents the logical negation of this predicate.
| |
| nest | back to summary |
|---|---|
| public default Optional Transform the given request into a request used for a nested route. For instance,
a path-based predicate can return a The default implementation returns an
| |
| or | back to summary |
|---|---|
| public default RequestPredicate or(RequestPredicate other) Return a composed request predicate that tests against both this predicate OR
the
| |
| test | back to summary |
|---|---|
| public boolean test(ServerRequest request) Evaluate this predicate on the given request.
| |