Package com.vonage.client
Class HttpConfig
java.lang.Object
com.vonage.client.HttpConfig
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for configuring the base URI and timeout of the client. -
Method Summary
Modifier and TypeMethodDescriptionstatic HttpConfig.Builderbuilder()Entrypoint for creating a custom HttpConfig.static HttpConfigCreates a standard HttpConfig.Returns the custom user agent string that will be appended to the default one, if set.getProxy()Returns the proxy URL to use for the underlying HTTP client configuration.getRegionalBaseUri(ApiRegion region) Returns the base URI for the specified region.intGets the timeout setting for the underlying HTTP client configuration.getVersionedApiBaseUri(String version) Deprecated.getVersionedApiEuBaseUri(String version) Deprecated.getVersionedRestBaseUri(String version) Deprecated.getVersionedVideoBaseUri(String version) Deprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.booleanDeprecated.
-
Method Details
-
getTimeoutMillis
Gets the timeout setting for the underlying HTTP client configuration.- Returns:
- The request timeout in milliseconds.
- Since:
- 7.8.0
-
getApiBaseUri
-
getRestBaseUri
-
getVideoBaseUri
-
getApiEuBaseUri
-
getRegionalBaseUri
Returns the base URI for the specified region.- Parameters:
region- The region as an enum.- Returns:
- The base URI for the given region.
- Since:
- 8.11.0
-
getCustomUserAgent
Returns the custom user agent string that will be appended to the default one, if set.- Returns:
- The custom user agent string to append, or
nullif not set. - Since:
- 8.11.0
-
getProxy
Returns the proxy URL to use for the underlying HTTP client configuration.- Returns:
- The proxy URI, or
nullif not set. - Since:
- 8.15.0
-
isDefaultApiBaseUri
Deprecated. -
isDefaultRestBaseUri
Deprecated. -
isDefaultApiEuBaseUri
Deprecated. -
isDefaultVideoBaseUri
Deprecated. -
getVersionedApiBaseUri
Deprecated. -
getVersionedRestBaseUri
Deprecated. -
getVersionedApiEuBaseUri
Deprecated. -
getVersionedVideoBaseUri
Deprecated. -
defaultConfig
Creates a standard HttpConfig.- Returns:
- an HttpConfig object with sensible defaults.
-
builder
Entrypoint for creating a custom HttpConfig.- Returns:
- A new Builder.
-