public static interface ProxyConfiguration.Builder extends CopyableBuilder<ProxyConfiguration.Builder,ProxyConfiguration>
ProxyConfiguration
.
All implementations of this interface are mutable and not thread safe.
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.Builder |
endpoint(URI endpoint)
Configure the endpoint of the proxy server that the SDK should connect through.
|
ProxyConfiguration.Builder |
nonProxyHosts(Set<String> nonProxyHosts)
Configure the hosts that the client is allowed to access without going through the proxy.
|
ProxyConfiguration.Builder |
ntlmDomain(String proxyDomain)
For NTLM proxies: Configure the Windows domain name to use when authenticating with the proxy.
|
ProxyConfiguration.Builder |
ntlmWorkstation(String proxyWorkstation)
For NTLM proxies: Configure the Windows workstation name to use when authenticating with the proxy.
|
ProxyConfiguration.Builder |
password(String password)
Configure the password to use when connecting through a proxy.
|
ProxyConfiguration.Builder |
preemptiveBasicAuthenticationEnabled(Boolean preemptiveBasicAuthenticationEnabled)
Configure whether to attempt to authenticate pre-emptively against the proxy server using basic authentication.
|
ProxyConfiguration.Builder |
username(String username)
Configure the username to use when connecting through a proxy.
|
ProxyConfiguration.Builder |
useSystemPropertyValues(Boolean useSystemPropertyValues)
Option whether to use system property values from
ProxySystemSetting if any of the config options are missing. |
copy
applyMutation, build
ProxyConfiguration.Builder endpoint(URI endpoint)
ProxyConfiguration.Builder username(String username)
ProxyConfiguration.Builder password(String password)
ProxyConfiguration.Builder ntlmDomain(String proxyDomain)
ProxyConfiguration.Builder ntlmWorkstation(String proxyWorkstation)
ProxyConfiguration.Builder nonProxyHosts(Set<String> nonProxyHosts)
ProxyConfiguration.Builder addNonProxyHost(String nonProxyHost)
ProxyConfiguration.nonProxyHosts()
ProxyConfiguration.Builder preemptiveBasicAuthenticationEnabled(Boolean preemptiveBasicAuthenticationEnabled)
ProxyConfiguration.Builder useSystemPropertyValues(Boolean useSystemPropertyValues)
ProxySystemSetting
if any of the config options are missing.
This value is set to "true" by default which means SDK will automatically use system property values
for options that are not provided during building the ProxyConfiguration
object. To disable this behavior,
set this value to "false".Copyright © 2019. All rights reserved.