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.
|
void |
setUseSystemPropertyValues(Boolean useSystemPropertyValues) |
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.useSystemPropertyValues in interface CrtProxyConfiguration.BuilderuseSystemPropertyValues - The option whether to use system property valuespublic void setUseSystemPropertyValues(Boolean useSystemPropertyValues)
Copyright © 2023. All rights reserved.