public final class EndpointRequest extends Object
RequestMatcher for actuator endpoint
locations.| Modifier and Type | Class and Description |
|---|---|
static class |
EndpointRequest.EndpointRequestMatcher
The request matcher used to match against
actuator endpoints. |
| Modifier and Type | Method and Description |
|---|---|
static EndpointRequest.EndpointRequestMatcher |
to(Class<?>... endpoints)
Returns a matcher that includes the specified
actuator endpoints. |
static EndpointRequest.EndpointRequestMatcher |
to(String... endpoints)
Returns a matcher that includes the specified
actuator endpoints. |
static EndpointRequest.EndpointRequestMatcher |
toAnyEndpoint()
Returns a matcher that includes all
actuator endpoints. |
public static EndpointRequest.EndpointRequestMatcher toAnyEndpoint()
actuator endpoints. The
excluding method can be used to
further remove specific endpoints if required. For example: EndpointRequest.toAnyEndpoint().excluding(ShutdownEndpoint.class)
RequestMatcherpublic static EndpointRequest.EndpointRequestMatcher to(Class<?>... endpoints)
actuator endpoints.
For example: EndpointRequest.to(ShutdownEndpoint.class, HealthEndpoint.class)
endpoints - the endpoints to includeRequestMatcherpublic static EndpointRequest.EndpointRequestMatcher to(String... endpoints)
actuator endpoints.
For example:
EndpointRequest.to("shutdown", "health")
endpoints - the endpoints to includeRequestMatcherCopyright © 2018 Pivotal Software, Inc.. All rights reserved.