Commit 2a1ec2a1 by Johannes Edmeier

Ignore the templated actuator endpoints

parent 8ace426e
...@@ -60,7 +60,7 @@ public class QueryIndexEndpointStrategy implements EndpointDetectionStrategy { ...@@ -60,7 +60,7 @@ public class QueryIndexEndpointStrategy implements EndpointDetectionStrategy {
List<Endpoint> endpoints = response.get_links() List<Endpoint> endpoints = response.get_links()
.entrySet() .entrySet()
.stream() .stream()
.filter(e -> !e.getKey().equals("self")) .filter(e -> !e.getKey().equals("self") && !e.getValue().isTemplated())
.map(e -> Endpoint.of(e.getKey(), e.getValue().getHref())) .map(e -> Endpoint.of(e.getKey(), e.getValue().getHref()))
.collect(Collectors.toList()); .collect(Collectors.toList());
if (endpoints.isEmpty()) { if (endpoints.isEmpty()) {
...@@ -77,6 +77,7 @@ public class QueryIndexEndpointStrategy implements EndpointDetectionStrategy { ...@@ -77,6 +77,7 @@ public class QueryIndexEndpointStrategy implements EndpointDetectionStrategy {
@Data @Data
static class EndpointRef { static class EndpointRef {
private String href; private String href;
private boolean templated;
} }
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment