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 Details

    • WebRequestSensors

      public WebRequestSensors()
      Creates new WebRequestSensors.
    • WebRequestSensors

      public WebRequestSensors(WebRequestSensors source)
      Creates new WebRequestSensors from a different instance.
      Parameters:
      source - source from which values are copied
    • WebRequestSensors

      public WebRequestSensors(boolean okHttp, boolean httpUrlConnection, boolean httpClient)
      Creates new WebRequestSensors.
      Parameters:
      okHttp - true, if okHttp web requests should be monitored
      httpUrlConnection - true, if HttpURLConnection web requests should be monitored
      httpClient - true, if HttpClient 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 enabled

      The default value is true.

      Parameters:
      okHttp - true, if the sensor for the OkHttp library is enabled
    • httpUrlConnection

      public void httpUrlConnection(boolean httpUrlConnection)
      Specifies if the sensor for HttpURLConnection is enabled

      The default value is true.

      Parameters:
      httpUrlConnection - true, if the sensor for HttpURLConnection is enabled
    • httpClient

      public void httpClient(boolean httpClient)
      Specifies if the sensor for HttpClient is enabled

      The default value is false.

      Parameters:
      httpClient - true, if the sensor for HttpClient is 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:
      isOkHttp in interface com.dynatrace.tools.android.api.WebRequestSensors
      Returns:
      true, if the sensor for the OkHttp library is enabled
    • isHttpUrlConnection

      public boolean isHttpUrlConnection()
      Specifies if the sensor for HttpURLConnection is enabled

      The default value is true.

      Specified by:
      isHttpUrlConnection in interface com.dynatrace.tools.android.api.WebRequestSensors
      Returns:
      true, if the sensor for HttpURLConnection is enabled
    • isHttpClient

      public boolean isHttpClient()
      Specifies if the sensor for HttpClient is enabled

      The default value is false.

      Specified by:
      isHttpClient in interface com.dynatrace.tools.android.api.WebRequestSensors
      Returns:
      true, if the sensor for HttpClient is enabled
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object