Class HTTPClientConfiguration
- java.lang.Object
-
- com.dynatrace.openkit.core.configuration.HTTPClientConfiguration
-
public class HTTPClientConfiguration extends java.lang.ObjectThe HTTPClientConfiguration holds all http client related settings
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHTTPClientConfiguration.BuilderBuilder class for buildingHTTPClientConfiguration.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HTTPClientConfigurationfrom(OpenKitConfiguration openKitConfig)Creates a newHTTPClientConfigurationinstance and initializes it from the givenOpenKitConfiguration.java.lang.StringgetApplicationID()The application id for the http clientjava.lang.StringgetBaseURL()Returns the base url for the http clientlonggetDeviceID()Returns the unique device identifierHttpRequestInterceptorgetHttpRequestInterceptor()Returns an interface used to intercept HTTP requests, before they are sent to the Dynatrace backend.HttpResponseInterceptorgetHttpResponseInterceptor()Returns an interface used to intercept HTTP responses received from Dynatrace backend.intgetServerID()Returns the server id to be used for the http clientSSLTrustManagergetSSLTrustManager()Returns an interface used for X509 certificate authentication and hostname verification.static HTTPClientConfiguration.BuildermodifyWith(HTTPClientConfiguration httpClientConfig)Creates a new builder instance and initializes it from the givenHTTPClientConfigurationstatic HTTPClientConfiguration.BuildermodifyWith(OpenKitConfiguration openKitConfig)Creates a new builder instance and initializes it from the givenOpenKitConfiguration
-
-
-
Method Detail
-
from
public static HTTPClientConfiguration from(OpenKitConfiguration openKitConfig)
Creates a newHTTPClientConfigurationinstance and initializes it from the givenOpenKitConfiguration.- Parameters:
openKitConfig- the openKit configuration from which the instance will be initialized.- Returns:
- a new
HTTPClientConfigurationinstance initialized from the given configuration.
-
modifyWith
public static HTTPClientConfiguration.Builder modifyWith(OpenKitConfiguration openKitConfig)
Creates a new builder instance and initializes it from the givenOpenKitConfiguration- Parameters:
openKitConfig- theOpenKitConfigurationfrom which the builder will be initialized.- Returns:
- a pre initialized builder instance for creating a new
HTTPClientConfiguration
-
modifyWith
public static HTTPClientConfiguration.Builder modifyWith(HTTPClientConfiguration httpClientConfig)
Creates a new builder instance and initializes it from the givenHTTPClientConfiguration- Parameters:
httpClientConfig- theHTTPClientConfigurationfrom which the builder will be initialized.- Returns:
- a pre initialized builder instance for creating a new
HTTPClientConfiguration
-
getBaseURL
public java.lang.String getBaseURL()
Returns the base url for the http client- Returns:
- the base url
-
getServerID
public int getServerID()
Returns the server id to be used for the http client- Returns:
- the server id
-
getApplicationID
public java.lang.String getApplicationID()
The application id for the http client- Returns:
- the application id
-
getSSLTrustManager
public SSLTrustManager getSSLTrustManager()
Returns an interface used for X509 certificate authentication and hostname verification.
-
getHttpRequestInterceptor
public HttpRequestInterceptor getHttpRequestInterceptor()
Returns an interface used to intercept HTTP requests, before they are sent to the Dynatrace backend.
-
getHttpResponseInterceptor
public HttpResponseInterceptor getHttpResponseInterceptor()
Returns an interface used to intercept HTTP responses received from Dynatrace backend.
-
getDeviceID
public long getDeviceID()
Returns the unique device identifier
-
-