10Duke Java Core
Loading...
Searching...
No Matches
tenduke.sdk.core.model.config.HttpClientConfig Interface Reference

Detailed Description

Configuration model for use with 10Duke SDK core built-in HTTP client setup.

Inheritance diagram for tenduke.sdk.core.model.config.HttpClientConfig:
tenduke.sdk.core.model.config.Configuration tenduke.sdk.core.model.config.AuthConfig tenduke.sdk.core.model.config.AuthConfigWithFallback tenduke.sdk.core.model.config.InMemoryAuthConfig tenduke.sdk.core.model.config.MinViableAuthConfig tenduke.sdk.core.config.typesafe.TypesafeAuthConfig

Public Member Functions

default float httpTimeoutSeconds ()
 Timeout for HTTP requests.
 
default Optional< String > httpsProxy ()
 Proxy to use for HTTPS requests.
 
- Public Member Functions inherited from tenduke.sdk.core.model.config.Configuration
< U > U unwrap ()
 Unwraps the underlying implementation and returns it to the caller.
 

Public Attributes

float DEFAULT_HTTP_TIMEOUT_SECONDS = 30.0F
 Defines the default HTTP connect, call, read and write timeout value in seconds.
 

Member Function Documentation

◆ httpsProxy()

default Optional< String > tenduke.sdk.core.model.config.HttpClientConfig.httpsProxy ( )

Proxy to use for HTTPS requests.

The proxy URL must define a hostname and port. The format, including scheme is: proxy://hostname:port. E.g. proxy://localhost:32008.

Defaults to empty (no proxy).

Returns
HTTP proxy address.

Implemented in tenduke.sdk.core.model.config.AuthConfigWithFallback, and tenduke.sdk.core.model.config.InMemoryAuthConfig.

◆ httpTimeoutSeconds()

default float tenduke.sdk.core.model.config.HttpClientConfig.httpTimeoutSeconds ( )

Timeout for HTTP requests.

Defaults to DEFAULT_HTTP_TIMEOUT_SECONDS which equals 30.0 seconds. Timeout value must be greater than 0.

Returns
HTTP timeout in seconds.

Implemented in tenduke.sdk.core.model.config.AuthConfigWithFallback, and tenduke.sdk.core.model.config.InMemoryAuthConfig.


The documentation for this interface was generated from the following file: