@Test public void ifNoMetricsMatchNameThen404NotFoundIsReturned() { HttpResponse response = Mono.from(handler.handle(get("/admin/metrics/foo.bar").build(), requestContext())).block(); assertThat(response.status(), is(NOT_FOUND)); }
@Override public Eventual<HttpResponse> handle(HttpRequest request, HttpInterceptor.Context context) { return this.urlMatcher.handle(request, context); }
MetricsHandler implements WebServiceHandler { @Override public Eventual<HttpResponse> handle(HttpRequest request, HttpInterceptor.Context context) { return this.urlMatcher.handle(request, context); } }
MetricsHandler implements WebServiceHandler { @Override public Eventual<HttpResponse> handle(HttpRequest request, HttpInterceptor.Context context) { return this.urlMatcher.handle(request, context); } MetricsHandler(MetricRegistry metricRegistry, Optional<Duration> cacheExpiration); }
MetricsHandler implements WebServiceHandler { @Override public Eventual<HttpResponse> handle(HttpRequest request, HttpInterceptor.Context context) { return this.urlMatcher.handle(request, context); } MetricsHandler(MetricRegistry metricRegistry, Optional<Duration> cacheExpiration); @Override Eventual<HttpResponse> handle(HttpRequest request, HttpInterceptor.Context context); }
MetricsHandler implements WebServiceHandler { @Override public Eventual<HttpResponse> handle(HttpRequest request, HttpInterceptor.Context context) { return this.urlMatcher.handle(request, context); } MetricsHandler(MetricRegistry metricRegistry, Optional<Duration> cacheExpiration); @Override Eventual<HttpResponse> handle(HttpRequest request, HttpInterceptor.Context context);  }