public final class Tracer extends Object
tracing=true.
Trace messages added by method trace. All collected messages will be sent to client as headers. Each
trace message is represented as separate HTTP header. The name of header has next pattern
EverRest-Trace-XXX, where XXX is number of message.| Constructor and Description |
|---|
Tracer() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addTraceHeaders(GenericContainerResponse response)
Add all collected trace messages to specified instance of
response as HTTP headers. |
static boolean |
isTracingEnabled()
Check is tracing feature enabled.
|
static void |
trace(String message)
Add trace message.
|
public static boolean isTracingEnabled()
true if tracing enabled and false otherwise.public static void trace(String message)
message - the trace messagepublic static void addTraceHeaders(GenericContainerResponse response)
response as HTTP headers.
This method must be invoked at the end of request lifecycle.response - the response for adding headersCopyright © 2012–2016 Codenvy, S.A.. All rights reserved.