接口 RequestCondition<T>

    • 方法概要

      所有方法 实例方法 抽象方法 
      修饰符和类型方法说明
      Tcombine​(T other)
      Combine this condition with another such as conditions from a type-level and method-level @RequestMapping annotation.
      intcompareTo​(T other, ServerWebExchange exchange)
      Compare this condition to another condition in the context of a specific request.
      TgetMatchingCondition​(ServerWebExchange exchange)
      Check if the condition matches the request returning a potentially new instance created for the current request.
    • 方法详细资料

      • combine

        T combine​(T other)
        Combine this condition with another such as conditions from a type-level and method-level @RequestMapping annotation.
        参数:
        other - the condition to combine with.
        返回:
        a request condition instance that is the result of combining the two condition instances.
      • getMatchingCondition

        @Nullable
        T getMatchingCondition​(ServerWebExchange exchange)
        Check if the condition matches the request returning a potentially new instance created for the current request. For example a condition with multiple URL patterns may return a new instance only with those patterns that match the request.

        For CORS pre-flight requests, conditions should match to the would-be, actual request (e.g. URL pattern, query parameters, and the HTTP method from the "Access-Control-Request-Method" header). If a condition cannot be matched to a pre-flight request it should return an instance with empty content thus not causing a failure to match.

        返回:
        a condition instance in case of a match or null otherwise.