public class NullWebRequestTracer extends java.lang.Object implements WebRequestTracer
Action.traceWebRequest(String) or
Action.traceWebRequest(java.net.URLConnection) when the Action.leaveAction() ()}
has been called before.| Constructor and Description |
|---|
NullWebRequestTracer() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
java.lang.String |
getTag()
Returns the Dynatrace tag which has to be set manually as Dynatrace HTTP header
(
OpenKitConstants.WEBREQUEST_TAG_HEADER). |
WebRequestTracer |
setBytesReceived(int bytesReceived)
Sets the amount of received data of this web request.
|
WebRequestTracer |
setBytesSent(int bytesSent)
Sets the amount of sent data of this web request.
|
WebRequestTracer |
setResponseCode(int responseCode)
Sets the response code of this web request.
|
WebRequestTracer |
start()
Starts the web request timing.
|
void |
stop()
Stops the web request timing.
|
public java.lang.String getTag()
WebRequestTracerOpenKitConstants.WEBREQUEST_TAG_HEADER). getTag in interface WebRequestTracerpublic WebRequestTracer setResponseCode(int responseCode)
WebRequestTracerWebRequestTracer.stop().setResponseCode in interface WebRequestTracerresponseCode - response code of this web requestpublic WebRequestTracer setBytesSent(int bytesSent)
WebRequestTracerWebRequestTracer.stop().setBytesSent in interface WebRequestTracerbytesSent - number of bytespublic WebRequestTracer setBytesReceived(int bytesReceived)
WebRequestTracerWebRequestTracer.stop().setBytesReceived in interface WebRequestTracerbytesReceived - number of bytespublic WebRequestTracer start()
WebRequestTracerstart in interface WebRequestTracerpublic void stop()
WebRequestTracerstop in interface WebRequestTracerpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseable