Class EndpointRequest
java.lang.Object
org.springframework.boot.actuate.autoconfigure.security.reactive.EndpointRequest
Factory that can be used to create a 
ServerWebExchangeMatcher for actuator
 endpoint locations.- Since:
- 2.0.0
- Author:
- Madhura Bhave, Phillip Webb
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classTheServerWebExchangeMatcherused to match against additional paths foractuator endpoints.static final classTheServerWebExchangeMatcherused to match againstactuator endpoints.static final classTheServerWebExchangeMatcherused to match against the links endpoint.
- 
Method SummaryModifier and TypeMethodDescriptionReturns a matcher that includes the specifiedactuator endpoints.Returns a matcher that includes the specifiedactuator endpoints.toAdditionalPaths(WebServerNamespace webServerNamespace, Class<?>... endpoints) Returns a matcher that includes additional paths under aWebServerNamespacefor the specifiedactuator endpoints.toAdditionalPaths(WebServerNamespace webServerNamespace, String... endpoints) Returns a matcher that includes additional paths under aWebServerNamespacefor the specifiedactuator endpoints.Returns a matcher that includes allactuator endpoints.toLinks()Returns a matcher that matches only on the links endpoint.
- 
Method Details- 
toAnyEndpointReturns a matcher that includes allactuator endpoints. It also includes the links endpoint which is present at the base path of the actuator endpoints. Theexcludingmethod can be used to further remove specific endpoints if required. For example:EndpointRequest.toAnyEndpoint().excluding(ShutdownEndpoint.class) - Returns:
- the configured ServerWebExchangeMatcher
 
- 
toReturns a matcher that includes the specifiedactuator endpoints. For example:EndpointRequest.to(ShutdownEndpoint.class, HealthEndpoint.class) - Parameters:
- endpoints- the endpoints to include
- Returns:
- the configured ServerWebExchangeMatcher
 
- 
toReturns a matcher that includes the specifiedactuator endpoints. For example:EndpointRequest.to("shutdown", "health")- Parameters:
- endpoints- the endpoints to include
- Returns:
- the configured ServerWebExchangeMatcher
 
- 
toLinksReturns a matcher that matches only on the links endpoint. It can be used when security configuration for the links endpoint is different from the otheractuator endpoints. TheexcludingLinksmethod can be used in combination with this to remove the links endpoint fromtoAnyEndpoint. For example:EndpointRequest.toLinks() - Returns:
- the configured ServerWebExchangeMatcher
 
- 
toAdditionalPathspublic static EndpointRequest.AdditionalPathsEndpointServerWebExchangeMatcher toAdditionalPaths(WebServerNamespace webServerNamespace, Class<?>... endpoints) Returns a matcher that includes additional paths under aWebServerNamespacefor the specifiedactuator endpoints. For example:EndpointRequest.toAdditionalPaths(WebServerNamespace.SERVER, "health") - Parameters:
- webServerNamespace- the web server namespace
- endpoints- the endpoints to include
- Returns:
- the configured RequestMatcher
- Since:
- 3.4.0
 
- 
toAdditionalPathspublic static EndpointRequest.AdditionalPathsEndpointServerWebExchangeMatcher toAdditionalPaths(WebServerNamespace webServerNamespace, String... endpoints) Returns a matcher that includes additional paths under aWebServerNamespacefor the specifiedactuator endpoints. For example:EndpointRequest.toAdditionalPaths(WebServerNamespace.SERVER, HealthEndpoint.class) - Parameters:
- webServerNamespace- the web server namespace
- endpoints- the endpoints to include
- Returns:
- the configured RequestMatcher
- Since:
- 3.4.0
 
 
-