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 Summary
Modifier and TypeClassDescriptionstatic class
TheServerWebExchangeMatcher
used to match against additional paths foractuator endpoints
.static final class
TheServerWebExchangeMatcher
used to match againstactuator endpoints
.static final class
TheServerWebExchangeMatcher
used to match against the links endpoint. -
Method Summary
Modifier 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 aWebServerNamespace
for the specifiedactuator endpoints
.toAdditionalPaths
(WebServerNamespace webServerNamespace, String... endpoints) Returns a matcher that includes additional paths under aWebServerNamespace
for the specifiedactuator endpoints
.Returns a matcher that includes allactuator endpoints
.toLinks()
Returns a matcher that matches only on the links endpoint.
-
Method Details
-
toAnyEndpoint
Returns a matcher that includes allactuator endpoints
. It also includes the links endpoint which is present at the base path of the actuator endpoints. Theexcluding
method can be used to further remove specific endpoints if required. For example:EndpointRequest.toAnyEndpoint().excluding(ShutdownEndpoint.class)
- Returns:
- the configured
ServerWebExchangeMatcher
-
to
Returns 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
-
to
Returns a matcher that includes the specifiedactuator endpoints
. For example:EndpointRequest.to("shutdown", "health")
- Parameters:
endpoints
- the endpoints to include- Returns:
- the configured
ServerWebExchangeMatcher
-
toLinks
Returns 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
. TheexcludingLinks
method can be used in combination with this to remove the links endpoint fromtoAnyEndpoint
. For example:EndpointRequest.toLinks()
- Returns:
- the configured
ServerWebExchangeMatcher
-
toAdditionalPaths
public static EndpointRequest.AdditionalPathsEndpointServerWebExchangeMatcher toAdditionalPaths(WebServerNamespace webServerNamespace, Class<?>... endpoints) Returns a matcher that includes additional paths under aWebServerNamespace
for the specifiedactuator endpoints
. For example:EndpointRequest.toAdditionalPaths(WebServerNamespace.SERVER, "health")
- Parameters:
webServerNamespace
- the web server namespaceendpoints
- the endpoints to include- Returns:
- the configured
RequestMatcher
- Since:
- 3.4.0
-
toAdditionalPaths
public static EndpointRequest.AdditionalPathsEndpointServerWebExchangeMatcher toAdditionalPaths(WebServerNamespace webServerNamespace, String... endpoints) Returns a matcher that includes additional paths under aWebServerNamespace
for the specifiedactuator endpoints
. For example:EndpointRequest.toAdditionalPaths(WebServerNamespace.SERVER, HealthEndpoint.class)
- Parameters:
webServerNamespace
- the web server namespaceendpoints
- the endpoints to include- Returns:
- the configured
RequestMatcher
- Since:
- 3.4.0
-