public class MetricsWebsocketBroadcastHandler extends Object implements Handler
This handler should be bound to an application path, and most likely only for the GET method…
import ratpack.dropwizard.metrics.MetricsWebsocketBroadcastHandler;
import static org.junit.Assert.*;
assertTrue(chain instanceof ratpack.handling.Chain);
chain.get("admin/metrics", new MetricsWebsocketBroadcastHandler());
| Constructor and Description |
|---|
MetricsWebsocketBroadcastHandler() |
public void handle(Context context) throws Exception
Handlerhandle in interface Handlercontext - The context to handleException - if anything goes wrong (exception will be implicitly passed to the context's Context.error(Throwable) method)