public class MiniProfilerStartProfilingHandler
extends java.lang.Object
implements ratpack.handling.Handler
The shouldStartProfiler(Context)
method can be overridden to optionally start a profiler. By default,
the handler will always start one.
Constructor and Description |
---|
MiniProfilerStartProfilingHandler(ProfilerProvider profilerProvider) |
Modifier and Type | Method and Description |
---|---|
void |
handle(ratpack.handling.Context ctx) |
protected boolean |
shouldStartProfiler(ratpack.handling.Context ctx)
Indicates whether the handler should start a profiler for the current request.
|
public MiniProfilerStartProfilingHandler(ProfilerProvider profilerProvider)
public void handle(ratpack.handling.Context ctx) throws java.lang.Exception
handle
in interface ratpack.handling.Handler
java.lang.Exception
protected boolean shouldStartProfiler(ratpack.handling.Context ctx)
ctx
- the current Ratpack contexttrue
.