接口 RequestPredicate

    • 方法详细资料

      • test

        boolean test​(ServerRequest request)
        Evaluate this predicate on the given request.
        参数:
        request - the request to match against
        返回:
        true if the request matches the predicate; false otherwise
      • and

        default RequestPredicate and​(RequestPredicate other)
        Return a composed request predicate that tests against both this predicate AND the other predicate. When evaluating the composed predicate, if this predicate is false, then the other predicate is not evaluated.
        参数:
        other - a predicate that will be logically-ANDed with this predicate
        返回:
        a predicate composed of this predicate AND the other predicate
      • negate

        default RequestPredicate negate()
        Return a predicate that represents the logical negation of this predicate.
        返回:
        a predicate that represents the logical negation of this predicate
      • or

        default RequestPredicate or​(RequestPredicate other)
        Return a composed request predicate that tests against both this predicate OR the other predicate. When evaluating the composed predicate, if this predicate is true, then the other predicate is not evaluated.
        参数:
        other - a predicate that will be logically-ORed with this predicate
        返回:
        a predicate composed of this predicate OR the other predicate