public enum NullWebRequestTracer extends java.lang.Enum<NullWebRequestTracer> implements WebRequestTracer
WebRequestTracer is returned by Action.traceWebRequest(String) or
Action.traceWebRequest(java.net.URLConnection) when the Action.leaveAction() ()}
has been called before.| Enum Constant and Description |
|---|
INSTANCE
The sole
NullWebRequestTracer instance |
| 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)
Deprecated.
|
WebRequestTracer |
start()
Starts the web request timing.
|
void |
stop()
Deprecated.
|
void |
stop(int respondeCode)
Stops the web request timing with the given response code.
|
static NullWebRequestTracer |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NullWebRequestTracer[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NullWebRequestTracer INSTANCE
NullWebRequestTracer instancepublic static NullWebRequestTracer[] values()
for (NullWebRequestTracer c : NullWebRequestTracer.values()) System.out.println(c);
public static NullWebRequestTracer valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getTag()
WebRequestTracerOpenKitConstants.WEBREQUEST_TAG_HEADER). getTag in interface WebRequestTracer@Deprecated public WebRequestTracer setResponseCode(int responseCode)
WebRequestTracer.setResponseCode(int)WebRequestTracerWebRequestTracer.stop().setResponseCode in interface WebRequestTracerresponseCode - response code of this web requestpublic WebRequestTracer setBytesSent(int bytesSent)
WebRequestTracerWebRequestTracer.stop(int).setBytesSent in interface WebRequestTracerbytesSent - number of bytespublic WebRequestTracer setBytesReceived(int bytesReceived)
WebRequestTracerWebRequestTracer.stop(int).setBytesReceived in interface WebRequestTracerbytesReceived - number of bytespublic WebRequestTracer start()
WebRequestTracerstart in interface WebRequestTracer@Deprecated public void stop()
WebRequestTracer.stop()WebRequestTracerstop in interface WebRequestTracerpublic void stop(int respondeCode)
WebRequestTracerstop in interface WebRequestTracerrespondeCode - response code of this web requestpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseable