类 ApplicationContextServerWebExchangeMatcher<C>

  • 类型参数:
    C - the type of the context that the match method actually needs to use. Can be an ApplicationContext or a class of an existing bean.
    所有已实现的接口:
    org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher

    public abstract class ApplicationContextServerWebExchangeMatcher<C>
    extends Object
    implements org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher
    ApplicationContext backed ServerWebExchangeMatcher. Can work directly with the ApplicationContext, obtain an existing bean or create a new bean that is autowired in the usual way.
    从以下版本开始:
    2.0.0
    • 嵌套类概要

      • 从接口继承的嵌套类/接口 org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher

        org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher.MatchResult
    • 方法概要

      所有方法 实例方法 抽象方法 具体方法 
      修饰符和类型方法说明
      protected Supplier<C>getContext​(org.springframework.web.server.ServerWebExchange exchange) 
      protected voidinitialized​(Supplier<C> context)
      Called once the context has been initialized.
      reactor.core.publisher.Mono<org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher.MatchResult>matches​(org.springframework.web.server.ServerWebExchange exchange) 
      protected abstract reactor.core.publisher.Mono<org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher.MatchResult>matches​(org.springframework.web.server.ServerWebExchange exchange, Supplier<C> context)
      Decides whether the rule implemented by the strategy matches the supplied exchange.
    • 方法详细资料

      • matches

        public final reactor.core.publisher.Mono<org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher.MatchResult> matches​(org.springframework.web.server.ServerWebExchange exchange)
        指定者:
        matches 在接口中 org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher
      • matches

        protected abstract reactor.core.publisher.Mono<org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher.MatchResult> matches​(org.springframework.web.server.ServerWebExchange exchange,
                                                                                                                                                          Supplier<C> context)
        Decides whether the rule implemented by the strategy matches the supplied exchange.
        参数:
        exchange - the source exchange
        context - a supplier for the initialized context (may throw an exception)
        返回:
        if the exchange matches
      • getContext

        protected Supplier<CgetContext​(org.springframework.web.server.ServerWebExchange exchange)
      • initialized

        protected void initialized​(Supplier<C> context)
        Called once the context has been initialized.
        参数:
        context - a supplier for the initialized context (may throw an exception)