public final class ProxyConfiguration extends Object implements ToCopyableBuilder<ProxyConfiguration.Builder,ProxyConfiguration>
Modifier and Type | Class and Description |
---|---|
static interface |
ProxyConfiguration.Builder
A builder for
ProxyConfiguration . |
Modifier and Type | Method and Description |
---|---|
static ProxyConfiguration.Builder |
builder()
Create a
ProxyConfiguration.Builder , used to create a ProxyConfiguration . |
String |
host()
Returns the proxy host name either from the configured endpoint or
from the "http.proxyHost" system property if
ProxyConfiguration.Builder.useSystemPropertyValues(Boolean) is set to true. |
Set<String> |
nonProxyHosts()
The hosts that the client is allowed to access without going through the proxy.
|
String |
ntlmDomain()
For NTLM proxies: The Windows domain name to use when authenticating with the proxy.
|
String |
ntlmWorkstation()
For NTLM proxies: The Windows workstation name to use when authenticating with the proxy.
|
String |
password()
The password to use when connecting through a proxy.
|
int |
port()
Returns the proxy port either from the configured endpoint or
from the "http.proxyPort" system property if
ProxyConfiguration.Builder.useSystemPropertyValues(Boolean) is set to true. |
Boolean |
preemptiveBasicAuthenticationEnabled()
Whether to attempt to authenticate preemptively against the proxy server using basic authentication.
|
String |
resolveScheme() |
String |
scheme()
Returns the
URI.scheme from the configured endpoint. |
ProxyConfiguration.Builder |
toBuilder() |
String |
toString() |
String |
username()
The username to use when connecting through a proxy.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copy
public String host()
ProxyConfiguration.Builder.useSystemPropertyValues(Boolean)
is set to true.public int port()
ProxyConfiguration.Builder.useSystemPropertyValues(Boolean)
is set to true.
If no value is found in neither of the above options, the default value of 0 is returned.public String scheme()
URI.scheme
from the configured endpoint. Otherwise return null.public String username()
public String password()
public String ntlmDomain()
public String ntlmWorkstation()
public Set<String> nonProxyHosts()
public Boolean preemptiveBasicAuthenticationEnabled()
public ProxyConfiguration.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<ProxyConfiguration.Builder,ProxyConfiguration>
public static ProxyConfiguration.Builder builder()
ProxyConfiguration.Builder
, used to create a ProxyConfiguration
.public String resolveScheme()
Copyright © 2019. All rights reserved.