public final class EndpointRequest extends Object
ServerWebExchangeMatcher
for actuator
endpoint locations.Modifier and Type | Class and Description |
---|---|
static class |
EndpointRequest.EndpointServerWebExchangeMatcher
The
ServerWebExchangeMatcher used to match against actuator
endpoints . |
static class |
EndpointRequest.LinksServerWebExchangeMatcher
The
ServerWebExchangeMatcher used to match against the links endpoint. |
Modifier and Type | Method and Description |
---|---|
static EndpointRequest.EndpointServerWebExchangeMatcher |
to(Class<?>... endpoints)
Returns a matcher that includes the specified
actuator endpoints . |
static EndpointRequest.EndpointServerWebExchangeMatcher |
to(String... endpoints)
Returns a matcher that includes the specified
actuator endpoints . |
static EndpointRequest.EndpointServerWebExchangeMatcher |
toAnyEndpoint()
Returns a matcher that includes all
actuator endpoints . |
static EndpointRequest.LinksServerWebExchangeMatcher |
toLinks()
Returns a matcher that matches only on the links endpoint.
|
public static EndpointRequest.EndpointServerWebExchangeMatcher toAnyEndpoint()
actuator endpoints
. It also
includes the links endpoint which is present at the base path of the actuator
endpoints. The excluding
method can be used to further remove specific endpoints if required. For
example: EndpointRequest.toAnyEndpoint().excluding(ShutdownEndpoint.class)
ServerWebExchangeMatcher
public static EndpointRequest.EndpointServerWebExchangeMatcher to(Class<?>... endpoints)
actuator endpoints
.
For example: EndpointRequest.to(ShutdownEndpoint.class, HealthEndpoint.class)
endpoints
- the endpoints to includeServerWebExchangeMatcher
public static EndpointRequest.EndpointServerWebExchangeMatcher to(String... endpoints)
actuator endpoints
.
For example: EndpointRequest.to("shutdown", "health")
endpoints
- the endpoints to includeServerWebExchangeMatcher
public static EndpointRequest.LinksServerWebExchangeMatcher toLinks()
actuator endpoints
. The
excludingLinks
method can
be used in combination with this to remove the links endpoint from
toAnyEndpoint
. For example:
EndpointRequest.toLinks()
ServerWebExchangeMatcher
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.