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
ConstructorsConstructorDescriptionCreates newWebRequestSensors.WebRequestSensors(boolean okHttp, boolean httpUrlConnection, boolean httpClient) Creates newWebRequestSensors.WebRequestSensors(WebRequestSensors source) Creates newWebRequestSensorsfrom a different instance. -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()voidhttpClient(boolean httpClient) Specifies if the sensor forHttpClientis enabled.voidhttpUrlConnection(boolean httpUrlConnection) Specifies if the sensor forHttpURLConnectionis enabled.booleanSpecifies if the sensor forHttpClientis enabled.booleanSpecifies if the sensor forHttpURLConnectionis enabled.booleanisOkHttp()Specifies if the sensor for the OkHttp library (version 3 and 4) is enabled.voidokHttp(boolean okHttp) Specifies if the sensor for the OkHttp library (version 3 and 4) is enabled.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.dynatrace.tools.android.api.WebRequestSensors
hasActiveSensors
-
Constructor Details
-
WebRequestSensors
public WebRequestSensors()Creates newWebRequestSensors. -
WebRequestSensors
Creates newWebRequestSensorsfrom 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, ifokHttpweb requests should be monitoredhttpUrlConnection- true, ifHttpURLConnectionweb requests should be monitoredhttpClient- true, ifHttpClientweb 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 enabled.The default value is true.
- Parameters:
okHttp- true, if the sensor for theOkHttplibrary is enabled
-
httpUrlConnection
public void httpUrlConnection(boolean httpUrlConnection) Specifies if the sensor forHttpURLConnectionis enabled.The default value is true.
- Parameters:
httpUrlConnection- true, if the sensor forHttpURLConnectionis enabled
-
httpClient
public void httpClient(boolean httpClient) Specifies if the sensor forHttpClientis enabled.The default value is false.
- Parameters:
httpClient- true, if the sensor forHttpClientis enabled
-
isOkHttp
public boolean isOkHttp()Specifies if the sensor for the OkHttp library (version 3 and 4) is enabled.The default value is true.
- Specified by:
isOkHttpin interfacecom.dynatrace.tools.android.api.WebRequestSensors- Returns:
- true, if the sensor for the
OkHttplibrary is enabled
-
isHttpUrlConnection
public boolean isHttpUrlConnection()Specifies if the sensor forHttpURLConnectionis enabled.The default value is true.
- Specified by:
isHttpUrlConnectionin interfacecom.dynatrace.tools.android.api.WebRequestSensors- Returns:
- true, if the sensor for
HttpURLConnectionis enabled
-
isHttpClient
public boolean isHttpClient()Specifies if the sensor forHttpClientis enabled.The default value is false.
- Specified by:
isHttpClientin interfacecom.dynatrace.tools.android.api.WebRequestSensors- Returns:
- true, if the sensor for
HttpClientis enabled
-
hashCode
public int hashCode() -
equals
-
toString
-