Package com.dynatrace.tools.android.dsl
Class WebRequestSensors
java.lang.Object
com.dynatrace.tools.android.dsl.WebRequestSensors
- All Implemented Interfaces:
com.dynatrace.tools.android.api.WebRequestSensors
,Serializable
public class WebRequestSensors
extends Object
implements Serializable, com.dynatrace.tools.android.api.WebRequestSensors
DSL object for configuring the sensor options of the web request monitoring feature.
- See Also:
-
Constructor Summary
ConstructorDescriptionCreates newWebRequestSensors
.WebRequestSensors
(boolean okHttp, boolean httpUrlConnection, boolean httpClient) Creates newWebRequestSensors
.WebRequestSensors
(WebRequestSensors source) Creates newWebRequestSensors
from a different instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
hashCode()
void
httpClient
(boolean httpClient) Specifies if the sensor forHttpClient
is enabledvoid
httpUrlConnection
(boolean httpUrlConnection) Specifies if the sensor forHttpURLConnection
is enabledboolean
Specifies if the sensor forHttpClient
is enabledboolean
Specifies if the sensor forHttpURLConnection
is enabledboolean
isOkHttp()
Specifies if the sensor for the OkHttp library (version 3 and 4) is enabledvoid
okHttp
(boolean okHttp) Specifies if the sensor for the OkHttp library (version 3 and 4) is enabledtoString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.dynatrace.tools.android.api.WebRequestSensors
hasActiveSensors
-
Constructor Details
-
WebRequestSensors
public WebRequestSensors()Creates newWebRequestSensors
. -
WebRequestSensors
Creates newWebRequestSensors
from a different instance.- Parameters:
source
- source from which values are copied
-
WebRequestSensors
public WebRequestSensors(boolean okHttp, boolean httpUrlConnection, boolean httpClient) Creates newWebRequestSensors
.- Parameters:
okHttp
- true, ifokHttp
web requests should be monitoredhttpUrlConnection
- true, ifHttpURLConnection
web requests should be monitoredhttpClient
- true, ifHttpClient
web requests should be monitored
-
-
Method Details
-
okHttp
public void okHttp(boolean okHttp) Specifies if the sensor for the OkHttp library (version 3 and 4) is enabledThe default value is true.
- Parameters:
okHttp
- true, if the sensor for theOkHttp
library is enabled
-
httpUrlConnection
public void httpUrlConnection(boolean httpUrlConnection) Specifies if the sensor forHttpURLConnection
is enabledThe default value is true.
- Parameters:
httpUrlConnection
- true, if the sensor forHttpURLConnection
is enabled
-
httpClient
public void httpClient(boolean httpClient) Specifies if the sensor forHttpClient
is enabledThe default value is false.
- Parameters:
httpClient
- true, if the sensor forHttpClient
is enabled
-
isOkHttp
public boolean isOkHttp()Specifies if the sensor for the OkHttp library (version 3 and 4) is enabledThe default value is true.
- Specified by:
isOkHttp
in interfacecom.dynatrace.tools.android.api.WebRequestSensors
- Returns:
- true, if the sensor for the
OkHttp
library is enabled
-
isHttpUrlConnection
public boolean isHttpUrlConnection()Specifies if the sensor forHttpURLConnection
is enabledThe default value is true.
- Specified by:
isHttpUrlConnection
in interfacecom.dynatrace.tools.android.api.WebRequestSensors
- Returns:
- true, if the sensor for
HttpURLConnection
is enabled
-
isHttpClient
public boolean isHttpClient()Specifies if the sensor forHttpClient
is enabledThe default value is false.
- Specified by:
isHttpClient
in interfacecom.dynatrace.tools.android.api.WebRequestSensors
- Returns:
- true, if the sensor for
HttpClient
is enabled
-
hashCode
public int hashCode() -
equals
-
toString
-