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 . |
static class |
EndpointRequest.LinksRequestMatcher
The request matcher used to match against the links endpoint.
|
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 . |
static EndpointRequest.LinksRequestMatcher |
toLinks()
Returns a matcher that matches only on the links endpoint.
|
public static EndpointRequest.EndpointRequestMatcher 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)
RequestMatcher
public static EndpointRequest.EndpointRequestMatcher to(Class<?>... endpoints)
actuator endpoints
.
For example: EndpointRequest.to(ShutdownEndpoint.class, HealthEndpoint.class)
endpoints
- the endpoints to includeRequestMatcher
public static EndpointRequest.EndpointRequestMatcher to(String... endpoints)
actuator endpoints
.
For example: EndpointRequest.to("shutdown", "health")
endpoints
- the endpoints to includeRequestMatcher
public static EndpointRequest.LinksRequestMatcher toLinks()
actuator endpoints
. The
excludingLinks
method can be used
in combination with this to remove the links endpoint from
toAnyEndpoint
. For example:
EndpointRequest.toLinks()
RequestMatcher
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.