protected abstract static class CrtProxyConfiguration.DefaultBuilder<B extends CrtProxyConfiguration.Builder> extends Object implements CrtProxyConfiguration.Builder
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultBuilder() |
protected |
DefaultBuilder(CrtProxyConfiguration proxyConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
B |
host(String host)
Set the hostname of the proxy.
|
B |
password(String password)
The password to use for basic proxy authentication
|
B |
port(int port)
Set the port that the proxy expects connections on.
|
B |
scheme(String scheme)
The HTTP scheme to use for connecting to the proxy.
|
B |
setuseEnvironmentVariableValues(Boolean useEnvironmentVariableValues) |
void |
setUseSystemPropertyValues(Boolean useSystemPropertyValues) |
B |
useEnvironmentVariableValues(Boolean useEnvironmentVariableValues)
The option whether to use environment variable values from
ProxySystemSetting if any of the config options are
missing. |
B |
username(String username)
The username to use for basic proxy authentication
|
B |
useSystemPropertyValues(Boolean useSystemPropertyValues)
The option whether to use system property values from
ProxySystemSetting if any of the config options are
missing. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuildprotected DefaultBuilder()
protected DefaultBuilder(CrtProxyConfiguration proxyConfiguration)
public B scheme(String scheme)
CrtProxyConfiguration.Builderhttp and https.
The client defaults to http if none is given.
scheme in interface CrtProxyConfiguration.Builderscheme - The proxy scheme.public B host(String host)
CrtProxyConfiguration.Builderhost in interface CrtProxyConfiguration.Builderhost - The proxy host.public B port(int port)
CrtProxyConfiguration.Builderport in interface CrtProxyConfiguration.Builderport - The proxy port.public B username(String username)
CrtProxyConfiguration.BuilderIf not set, the client will not use basic authentication
username in interface CrtProxyConfiguration.Builderusername - The basic authentication username.public B password(String password)
CrtProxyConfiguration.BuilderIf not set, the client will not use basic authentication
password in interface CrtProxyConfiguration.Builderpassword - The basic authentication password.public B useSystemPropertyValues(Boolean useSystemPropertyValues)
CrtProxyConfiguration.BuilderProxySystemSetting 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 in interface CrtProxyConfiguration.BuilderuseSystemPropertyValues - The option whether to use system property valuespublic B useEnvironmentVariableValues(Boolean useEnvironmentVariableValues)
CrtProxyConfiguration.BuilderProxySystemSetting 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 in interface CrtProxyConfiguration.BuilderuseEnvironmentVariableValues - The option whether to use environment variable valuespublic B setuseEnvironmentVariableValues(Boolean useEnvironmentVariableValues)
public void setUseSystemPropertyValues(Boolean useSystemPropertyValues)
Copyright © 2023. All rights reserved.