public final class ProxyConfiguration extends Object implements ToCopyableBuilder<ProxyConfiguration.Builder,ProxyConfiguration>
UrlConnectionHttpClient. This class is used to configure an HTTP proxy to be used by
the UrlConnectionHttpClient.| 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 |
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. |
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, waitcopypublic 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 Set<String> nonProxyHosts()
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 © 2022. All rights reserved.