public class ConfigurationBuilder extends Object
Configuration| Modifier and Type | Method and Description |
|---|---|
com.dynatrace.android.agent.conf.Configuration |
buildConfiguration()
Builds the agent configuration object.
|
ConfigurationBuilder |
withCertificateValidation(boolean enabled)
Enables/disables certificate validation.
|
ConfigurationBuilder |
withCommunicationProblemListener(CommunicationProblemListener listener)
Sets a
CommunicationProblemListener that will be asynchronously notified when the agent can't successfully communicate
with the beacon. |
ConfigurationBuilder |
withCrashReporting(boolean enabled)
Enables/disables crash reporting.
|
ConfigurationBuilder |
withDebugLogging(boolean enabled)
Enables/disables debug logging.
|
ConfigurationBuilder |
withHybridMonitoring(boolean enabled)
Enables/disables the hybrid monitoring feature.
|
ConfigurationBuilder |
withKeyManagers(KeyManager[] keyManagers)
Allows the agent to use client certificates.
|
ConfigurationBuilder |
withKeyStore(KeyStore keyStore)
Allows the agent to verify self-signed certificates.
|
ConfigurationBuilder |
withMonitoredDomains(String... monitoredDomains)
For hybrid applications using the JavaScript library, cookies need to be set for each instrumented domain or server the application communicates with.
|
ConfigurationBuilder |
withStartupLoadBalancing(boolean enabled)
Enables/disables advanced load balancing for the agent startup
The default value is
false. |
ConfigurationBuilder |
withUserOptIn(boolean enabled)
Enables/disables the user opt-in feature.
|
public ConfigurationBuilder withCertificateValidation(boolean enabled)
true.
enabled - the certificate validation flagConfigurationBuilder objectpublic ConfigurationBuilder withKeyStore(KeyStore keyStore)
keyStore - the key store holding the certificate(s) for SSL communicationsConfigurationBuilder objectpublic ConfigurationBuilder withKeyManagers(KeyManager[] keyManagers)
withKeyStore(KeyStore).keyManagers - an array of key managers.ConfigurationBuilder objectpublic ConfigurationBuilder withMonitoredDomains(String... monitoredDomains)
monitoredDomains - a list of domains, hosts or IP addressesConfigurationBuilder objectwithHybridMonitoring(boolean)public ConfigurationBuilder withHybridMonitoring(boolean enabled)
false.enabled - the hybrid monitoring flagConfigurationBuilder objectpublic ConfigurationBuilder withDebugLogging(boolean enabled)
enabled - the debug logging flagConfigurationBuilder objectpublic ConfigurationBuilder withUserOptIn(boolean enabled)
false.enabled - the user opt-in flagConfigurationBuilder objectpublic ConfigurationBuilder withStartupLoadBalancing(boolean enabled)
false.enabled - true, if advanced load balancing for the startup should be enabledConfigurationBuilder objectpublic ConfigurationBuilder withCrashReporting(boolean enabled)
false.enabled - true, if crashes should be reportedConfigurationBuilder objectpublic ConfigurationBuilder withCommunicationProblemListener(CommunicationProblemListener listener)
CommunicationProblemListener that will be asynchronously notified when the agent can't successfully communicate
with the beacon. If a CommunicationProblemListener is used, the agent will not reconnect to the beacon endpoint, when
the communication fails with an invalid response code.listener - the object that should be notifiedConfigurationBuilder objectpublic com.dynatrace.android.agent.conf.Configuration buildConfiguration()
© 2021 Dynatrace LLC. All Rights Reserved