类 ApplicationContextServerWebExchangeMatcher<C>
java.lang.Object
org.springframework.boot.security.reactive.ApplicationContextServerWebExchangeMatcher<C>
- 类型参数:
C- the type of the context that the match method actually needs to use. Can be anApplicationContextor a class of anexisting bean.
- 所有已实现的接口:
ServerWebExchangeMatcher
- 直接已知子类:
EndpointRequest.AdditionalPathsEndpointServerWebExchangeMatcher,EndpointRequest.EndpointServerWebExchangeMatcher,EndpointRequest.LinksServerWebExchangeMatcher
public abstract class ApplicationContextServerWebExchangeMatcher<C>
extends Object
implements 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
- 作者:
- Madhura Bhave
-
嵌套类概要
从接口继承的嵌套类/接口 org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher
ServerWebExchangeMatcher.MatchResult -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getContext(ServerWebExchange exchange) protected booleanignoreApplicationContext(ApplicationContext applicationContext) Returns if theApplicationContextshould be ignored and not used for matching.protected voidinitialized(Supplier<C> context) Called once the context has been initialized.final reactor.core.publisher.Mono<ServerWebExchangeMatcher.MatchResult> matches(ServerWebExchange exchange) protected abstract reactor.core.publisher.Mono<ServerWebExchangeMatcher.MatchResult> matches(ServerWebExchange exchange, Supplier<C> context) Decides whether the rule implemented by the strategy matches the supplied exchange.
-
构造器详细资料
-
ApplicationContextServerWebExchangeMatcher
-
-
方法详细资料
-
matches
public final reactor.core.publisher.Mono<ServerWebExchangeMatcher.MatchResult> matches(ServerWebExchange exchange) - 指定者:
matches在接口中ServerWebExchangeMatcher
-
matches
protected abstract reactor.core.publisher.Mono<ServerWebExchangeMatcher.MatchResult> matches(ServerWebExchange exchange, Supplier<C> context) Decides whether the rule implemented by the strategy matches the supplied exchange.- 参数:
exchange- the source exchangecontext- a supplier for the initialized context (may throw an exception)- 返回:
- if the exchange matches
-
ignoreApplicationContext
Returns if theApplicationContextshould be ignored and not used for matching. If this method returnstruethen the context will not be used and thematchesmethod will returnfalse.- 参数:
applicationContext- the candidate application context- 返回:
- if the application context should be ignored
- 从以下版本开始:
- 2.2.5
-
getContext
-
initialized
Called once the context has been initialized.- 参数:
context- a supplier for the initialized context (may throw an exception)
-