Class EndpointRequest.LinksServerWebExchangeMatcher
java.lang.Object
org.springframework.boot.security.web.reactive.ApplicationContextServerWebExchangeMatcher<WebEndpointProperties>
org.springframework.boot.security.autoconfigure.actuate.web.reactive.EndpointRequest.LinksServerWebExchangeMatcher
- All Implemented Interfaces:
ServerWebExchangeMatcher
- Enclosing class:
EndpointRequest
public static final class EndpointRequest.LinksServerWebExchangeMatcher
extends ApplicationContextServerWebExchangeMatcher<WebEndpointProperties>
The
ServerWebExchangeMatcher used to match against the links endpoint.- Since:
- 4.0.0
- Author:
- Madhura Bhave, Phillip Webb, Chris Bono
-
Nested Class Summary
Nested classes/interfaces inherited from interface ServerWebExchangeMatcher
ServerWebExchangeMatcher.MatchResult -
Method Summary
Modifier and TypeMethodDescriptionprotected ServerWebExchangeMatchercreateDelegate(WebEndpointProperties properties) protected final List<ServerWebExchangeMatcher> getDelegateMatchers(Set<String> paths, @Nullable HttpMethod httpMethod) protected final EndpointIdgetEndpointId(Object source) protected final booleanhasWebServerNamespace(@Nullable ApplicationContext applicationContext, WebServerNamespace webServerNamespace) protected booleanignoreApplicationContext(@Nullable ApplicationContext applicationContext) Returns if theApplicationContextshould be ignored and not used for matching.protected booleanignoreApplicationContext(@Nullable ApplicationContext applicationContext, ManagementPortType managementPortType) protected voidinitialized(Supplier<WebEndpointProperties> supplier) Called once the context has been initialized.protected reactor.core.publisher.Mono<ServerWebExchangeMatcher.MatchResult> matches(ServerWebExchange exchange, Supplier<WebEndpointProperties> context) Decides whether the rule implemented by the strategy matches the supplied exchange.toString()protected final StringMethods inherited from class ApplicationContextServerWebExchangeMatcher
getContext, matches
-
Method Details
-
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, @Nullable HttpMethod httpMethod) -
matches
protected reactor.core.publisher.Mono<ServerWebExchangeMatcher.MatchResult> matches(ServerWebExchange exchange, Supplier<WebEndpointProperties> 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(@Nullable ApplicationContext applicationContext, ManagementPortType managementPortType) -
hasWebServerNamespace
protected final boolean hasWebServerNamespace(@Nullable ApplicationContext applicationContext, WebServerNamespace webServerNamespace) -
toString
-
getEndpointId
-