public static interface CrtProxyConfiguration.Builder
CrtProxyConfiguration.| Modifier and Type | Method and Description |
|---|---|
CrtProxyConfiguration |
build() |
CrtProxyConfiguration.Builder |
host(String host)
Set the hostname of the proxy.
|
CrtProxyConfiguration.Builder |
password(String password)
The password to use for basic proxy authentication
|
CrtProxyConfiguration.Builder |
port(int port)
Set the port that the proxy expects connections on.
|
CrtProxyConfiguration.Builder |
scheme(String scheme)
The HTTP scheme to use for connecting to the proxy.
|
CrtProxyConfiguration.Builder |
useEnvironmentVariableValues(Boolean useEnvironmentVariableValues)
The option whether to use environment variable values from
ProxySystemSetting if any of the config options are
missing. |
CrtProxyConfiguration.Builder |
username(String username)
The username to use for basic proxy authentication
|
CrtProxyConfiguration.Builder |
useSystemPropertyValues(Boolean useSystemPropertyValues)
The option whether to use system property values from
ProxySystemSetting if any of the config options are
missing. |
CrtProxyConfiguration.Builder host(String host)
host - The proxy host.CrtProxyConfiguration.Builder port(int port)
port - The proxy port.CrtProxyConfiguration.Builder scheme(String scheme)
http and https.
The client defaults to http if none is given.
scheme - The proxy scheme.CrtProxyConfiguration.Builder username(String username)
If not set, the client will not use basic authentication
username - The basic authentication username.CrtProxyConfiguration.Builder password(String password)
If not set, the client will not use basic authentication
password - The basic authentication password.CrtProxyConfiguration.Builder useSystemPropertyValues(Boolean useSystemPropertyValues)
ProxySystemSetting if any of the config options are
missing. The value is set to "true" by default which means SDK will automatically use system property values if options
are not provided during building the CrtProxyConfiguration object. To disable this behaviour, set this value to
false.It is important to note that when this property is set to "true," all proxy settings will exclusively originate
from system properties, and no partial settings will be obtained from EnvironmentVariableValues.useSystemPropertyValues - The option whether to use system property valuesCrtProxyConfiguration.Builder useEnvironmentVariableValues(Boolean useEnvironmentVariableValues)
ProxySystemSetting if any of the config options are
missing. The value is set to "true" by default which means SDK will automatically use environment variable values if
options are not provided during building the CrtProxyConfiguration object. To disable this behavior, set this
value to false.It is important to note that when this property is set to "true," all proxy settings will exclusively
originate from environment variableValues, and no partial settings will be obtained from SystemPropertyValues.useEnvironmentVariableValues - The option whether to use environment variable valuesCrtProxyConfiguration build()
Copyright © 2023. All rights reserved.