类 EndpointRequest
- java.lang.Object
- org.springframework.boot.actuate.autoconfigure.security.reactive.EndpointRequest
public final class EndpointRequest extends Object
Factory that can be used to create aServerWebExchangeMatcher
for actuator endpoint locations.- 从以下版本开始:
- 2.0.0
嵌套类概要
嵌套类 修饰符和类型 类 说明 static class
EndpointRequest.EndpointServerWebExchangeMatcher
TheServerWebExchangeMatcher
used to match againstactuator endpoints
.static class
EndpointRequest.LinksServerWebExchangeMatcher
TheServerWebExchangeMatcher
used to match against the links endpoint.
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static EndpointRequest.EndpointServerWebExchangeMatcher
to(Class<?>... endpoints)
Returns a matcher that includes the specifiedactuator endpoints
.static EndpointRequest.EndpointServerWebExchangeMatcher
to(String... endpoints)
Returns a matcher that includes the specifiedactuator endpoints
.static EndpointRequest.EndpointServerWebExchangeMatcher
toAnyEndpoint()
Returns a matcher that includes allactuator endpoints
.static EndpointRequest.LinksServerWebExchangeMatcher
toLinks()
Returns a matcher that matches only on the links endpoint.
方法详细资料
toAnyEndpoint
public static EndpointRequest.EndpointServerWebExchangeMatcher 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
public static EndpointRequest.EndpointServerWebExchangeMatcher to(Class<?>... endpoints)
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
public static EndpointRequest.EndpointServerWebExchangeMatcher to(String... endpoints)
Returns a matcher that includes the specifiedactuator endpoints
. For example:EndpointRequest.to("shutdown", "health")
- 参数:
endpoints
- the endpoints to include- 返回:
- the configured
ServerWebExchangeMatcher
toLinks
public static EndpointRequest.LinksServerWebExchangeMatcher 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