public EndpointServerWebExchangeMatcher excluding(String... endpoints) { List<Object> excludes = new ArrayList<>(this.excludes); excludes.addAll(Arrays.asList((Object[]) endpoints)); return new EndpointServerWebExchangeMatcher(this.includes, excludes, this.includeLinks); }
public EndpointServerWebExchangeMatcher excluding(Class<?>... endpoints) { List<Object> excludes = new ArrayList<>(this.excludes); excludes.addAll(Arrays.asList((Object[]) endpoints)); return new EndpointServerWebExchangeMatcher(this.includes, excludes, this.includeLinks); }
public EndpointServerWebExchangeMatcher excludingLinks() { return new EndpointServerWebExchangeMatcher(this.includes, this.excludes, false); }
/** * Returns a matcher that includes all {@link Endpoint actuator endpoints}. It also * includes the links endpoint which is present at the base path of the actuator * endpoints. The {@link EndpointServerWebExchangeMatcher#excluding(Class...) * excluding} method can be used to further remove specific endpoints if required. For * example: <pre class="code"> * EndpointRequest.toAnyEndpoint().excluding(ShutdownEndpoint.class) * </pre> * @return the configured {@link ServerWebExchangeMatcher} */ public static EndpointServerWebExchangeMatcher toAnyEndpoint() { return new EndpointServerWebExchangeMatcher(true); }
/** * Returns a matcher that includes the specified {@link Endpoint actuator endpoints}. * For example: <pre class="code"> * EndpointRequest.to("shutdown", "health") * </pre> * @param endpoints the endpoints to include * @return the configured {@link ServerWebExchangeMatcher} */ public static EndpointServerWebExchangeMatcher to(String... endpoints) { return new EndpointServerWebExchangeMatcher(endpoints, false); }
/** * Returns a matcher that includes the specified {@link Endpoint actuator endpoints}. * For example: <pre class="code"> * EndpointRequest.to(ShutdownEndpoint.class, HealthEndpoint.class) * </pre> * @param endpoints the endpoints to include * @return the configured {@link ServerWebExchangeMatcher} */ public static EndpointServerWebExchangeMatcher to(Class<?>... endpoints) { return new EndpointServerWebExchangeMatcher(endpoints, false); }