类 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.- 从以下版本开始:
- 2.0.0
- 作者:
- Madhura Bhave, Phillip Webb
-
嵌套类概要
嵌套类修饰符和类型类说明static 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. -
方法概要
修饰符和类型方法说明Returns 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.
-
方法详细资料
-
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)
- 返回:
- the configured
ServerWebExchangeMatcher
-
to
Returns a matcher that includes the specifiedactuator endpoints
. For example:EndpointRequest.to(ShutdownEndpoint.class, HealthEndpoint.class)
- 参数:
endpoints
- the endpoints to include- 返回:
- the configured
ServerWebExchangeMatcher
-
to
Returns a matcher that includes the specifiedactuator endpoints
. For example:EndpointRequest.to("shutdown", "health")
- 参数:
endpoints
- the endpoints to include- 返回:
- 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()
- 返回:
- 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")
- 参数:
webServerNamespace
- the web server namespaceendpoints
- the endpoints to include- 返回:
- the configured
RequestMatcher
- 从以下版本开始:
- 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)
- 参数:
webServerNamespace
- the web server namespaceendpoints
- the endpoints to include- 返回:
- the configured
RequestMatcher
- 从以下版本开始:
- 3.4.0
-