public static interface ProxyConfiguration.Builder extends CrtProxyConfiguration.Builder, CopyableBuilder<ProxyConfiguration.Builder,ProxyConfiguration>
ProxyConfiguration.| Modifier and Type | Method and Description |
|---|---|
ProxyConfiguration.Builder |
addNonProxyHost(String nonProxyHost)
Add a host that the client is allowed to access without going through the proxy.
|
ProxyConfiguration |
build()
An immutable object that is created from the
properties that have been set on the builder.
|
ProxyConfiguration.Builder |
host(String host)
Set the hostname of the proxy.
|
ProxyConfiguration.Builder |
nonProxyHosts(Set<String> nonProxyHosts)
Configure the hosts that the client is allowed to access without going through the proxy.
|
ProxyConfiguration.Builder |
password(String password)
The password to use for basic proxy authentication
|
ProxyConfiguration.Builder |
port(int port)
Set the port that the proxy expects connections on.
|
ProxyConfiguration.Builder |
scheme(String scheme)
The HTTP scheme to use for connecting to the proxy.
|
ProxyConfiguration.Builder |
useEnvironmentVariableValues(Boolean useEnvironmentVariableValues)
Set the option whether to use environment variable values for
ProxyEnvironmentSetting if any of the config
options are missing. |
ProxyConfiguration.Builder |
username(String username)
The username to use for basic proxy authentication
|
ProxyConfiguration.Builder |
useSystemPropertyValues(Boolean useSystemPropertyValues)
The option whether to use system property values from
ProxySystemSetting if any of the config options are
missing. |
copyapplyMutationProxyConfiguration.Builder host(String host)
host in interface CrtProxyConfiguration.Builderhost - The proxy host.ProxyConfiguration.Builder port(int port)
port in interface CrtProxyConfiguration.Builderport - The proxy port.ProxyConfiguration.Builder scheme(String scheme)
http and https.
The client defaults to http if none is given.
scheme in interface CrtProxyConfiguration.Builderscheme - The proxy scheme.ProxyConfiguration.Builder username(String username)
If not set, the client will not use basic authentication
username in interface CrtProxyConfiguration.Builderusername - The basic authentication username.ProxyConfiguration.Builder password(String password)
If not set, the client will not use basic authentication
password in interface CrtProxyConfiguration.Builderpassword - The basic authentication password.ProxyConfiguration.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 ProxyConfiguration object. To disable this behaviour, set this
value to
false.useSystemPropertyValues in interface CrtProxyConfiguration.BuilderuseSystemPropertyValues - The option whether to use system property valuesProxyConfiguration.Builder useEnvironmentVariableValues(Boolean useEnvironmentVariableValues)
ProxyEnvironmentSetting if any of the config
options are missing. The value is set to "true" by default, enabling the SDK to automatically use environment variable
values for proxy configuration options that are not provided during building the ProxyConfiguration 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 Variable Values, and no partial settings will be obtained
from System Property Values.
Comma-separated host names in the NO_PROXY environment variable indicate multiple hosts to exclude from proxy settings.
useEnvironmentVariableValues in interface CrtProxyConfiguration.BuilderuseEnvironmentVariableValues - The option whether to use environment variable valuesProxyConfiguration.Builder nonProxyHosts(Set<String> nonProxyHosts)
nonProxyHosts in interface CrtProxyConfiguration.BuilderProxyConfiguration.Builder addNonProxyHost(String nonProxyHost)
addNonProxyHost in interface CrtProxyConfiguration.BuilderProxyConfiguration build()
SdkBuilderbuild in interface Buildablebuild in interface CrtProxyConfiguration.Builderbuild in interface SdkBuilder<ProxyConfiguration.Builder,ProxyConfiguration>Copyright © 2026. All rights reserved.