Class EndpointRequest.EndpointServerWebExchangeMatcher
java.lang.Object
org.springframework.boot.security.reactive.ApplicationContextServerWebExchangeMatcher<C>
org.springframework.boot.actuate.autoconfigure.security.reactive.EndpointRequest.EndpointServerWebExchangeMatcher
- All Implemented Interfaces:
ServerWebExchangeMatcher
- Enclosing class:
- EndpointRequest
public static final class EndpointRequest.EndpointServerWebExchangeMatcher
extends ApplicationContextServerWebExchangeMatcher<C>
The
ServerWebExchangeMatcher used to match against actuator
endpoints.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.security.web.server.util.matcher.ServerWebExchangeMatcher
ServerWebExchangeMatcher.MatchResult -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.Methods inherited from class org.springframework.boot.security.reactive.ApplicationContextServerWebExchangeMatcher
getContext, matches
-
Method Details
-
excluding
-
excluding
-
excludingLinks
-
withHttpMethod
Restricts the matcher to only consider requests with a particular http method.- Parameters:
httpMethod- the http method to include- Returns:
- a copy of the matcher further restricted to only match requests with the specified http method
-
createDelegate
-
toString
-
initialized
Description copied from class:ApplicationContextServerWebExchangeMatcherCalled once the context has been initialized.- Overrides:
initializedin classApplicationContextServerWebExchangeMatcher<C>- Parameters:
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) Description copied from class:ApplicationContextServerWebExchangeMatcherDecides whether the rule implemented by the strategy matches the supplied exchange.- Specified by:
matchesin classApplicationContextServerWebExchangeMatcher<C>- Parameters:
exchange- the source exchangecontext- a supplier for the initialized context (may throw an exception)- Returns:
- if the exchange matches
-
ignoreApplicationContext
Description copied from class:ApplicationContextServerWebExchangeMatcherReturns if theApplicationContextshould be ignored and not used for matching. If this method returnstruethen the context will not be used and thematchesmethod will returnfalse.- Overrides:
ignoreApplicationContextin classApplicationContextServerWebExchangeMatcher<C>- Parameters:
applicationContext- the candidate application context- Returns:
- if the application context should be ignored
-
ignoreApplicationContext
protected boolean ignoreApplicationContext(ApplicationContext applicationContext, ManagementPortType managementPortType) -
hasWebServerNamespace
protected final boolean hasWebServerNamespace(ApplicationContext applicationContext, WebServerNamespace webServerNamespace) -
toString
-
getEndpointId
-