类 EndpointRequest.AdditionalPathsEndpointServerWebExchangeMatcher
java.lang.Object
org.springframework.boot.security.reactive.ApplicationContextServerWebExchangeMatcher<PathMappedEndpoints>
org.springframework.boot.actuate.autoconfigure.security.reactive.EndpointRequest.AdditionalPathsEndpointServerWebExchangeMatcher
- 所有已实现的接口:
ServerWebExchangeMatcher
- 封闭类:
EndpointRequest
public static class EndpointRequest.AdditionalPathsEndpointServerWebExchangeMatcher
extends ApplicationContextServerWebExchangeMatcher<PathMappedEndpoints>
The
ServerWebExchangeMatcher used to match against additional paths for
actuator endpoints.-
嵌套类概要
从接口继承的嵌套类/接口 org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher
ServerWebExchangeMatcher.MatchResult -
方法概要
修饰符和类型方法说明protected ServerWebExchangeMatchercreateDelegate(PathMappedEndpoints endpoints) protected final List<ServerWebExchangeMatcher> getDelegateMatchers(Set<String> paths, HttpMethod httpMethod) protected final EndpointIdgetEndpointId(Object source) protected final booleanhasWebServerNamespace(ApplicationContext applicationContext, WebServerNamespace webServerNamespace) protected booleanignoreApplicationContext(ApplicationContext applicationContext) Returns if theApplicationContextshould be ignored and not used for matching.protected booleanignoreApplicationContext(ApplicationContext applicationContext, ManagementPortType managementPortType) protected voidinitialized(Supplier<PathMappedEndpoints> supplier) Called once the context has been initialized.protected reactor.core.publisher.Mono<ServerWebExchangeMatcher.MatchResult> matches(ServerWebExchange exchange, Supplier<PathMappedEndpoints> context) Decides whether the rule implemented by the strategy matches the supplied exchange.toString()protected final StringwithHttpMethod(HttpMethod httpMethod) Restricts the matcher to only consider requests with a particular HTTP method.从类继承的方法 org.springframework.boot.security.reactive.ApplicationContextServerWebExchangeMatcher
getContext, matches
-
方法详细资料
-
withHttpMethod
public EndpointRequest.AdditionalPathsEndpointServerWebExchangeMatcher withHttpMethod(HttpMethod httpMethod) Restricts the matcher to only consider requests with a particular HTTP method.- 参数:
httpMethod- the HTTP method to include- 返回:
- a copy of the matcher further restricted to only match requests with the specified HTTP method
- 从以下版本开始:
- 3.5.0
-
ignoreApplicationContext
protected boolean ignoreApplicationContext(ApplicationContext applicationContext, ManagementPortType managementPortType) -
createDelegate
-
toString
-
initialized
Called once the context has been initialized.- 覆盖:
initialized在类中ApplicationContextServerWebExchangeMatcher<C>- 参数:
supplier- a supplier for the initialized context (may throw an exception)
-
getDelegateMatchers
protected final List<ServerWebExchangeMatcher> getDelegateMatchers(Set<String> paths, HttpMethod httpMethod) -
matches
protected reactor.core.publisher.Mono<ServerWebExchangeMatcher.MatchResult> matches(ServerWebExchange exchange, Supplier<PathMappedEndpoints> context) Decides whether the rule implemented by the strategy matches the supplied exchange.- 指定者:
matches在类中ApplicationContextServerWebExchangeMatcher<C>- 参数:
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.- 覆盖:
ignoreApplicationContext在类中ApplicationContextServerWebExchangeMatcher<C>- 参数:
applicationContext- the candidate application context- 返回:
- if the application context should be ignored
-
hasWebServerNamespace
protected final boolean hasWebServerNamespace(ApplicationContext applicationContext, WebServerNamespace webServerNamespace) -
toString
-
getEndpointId
-