public static final class ProxyConfiguration.Builder
extends java.lang.Object
ProxyConfiguration
.Constructor and Description |
---|
Builder(ProxyConfiguration.Protocol protocol,
java.lang.String server,
long port,
boolean enabled)
Constructor with parameters for the required properties of
ProxyConfiguration . |
Modifier and Type | Method and Description |
---|---|
ProxyConfiguration |
build() |
ProxyConfiguration.Builder |
setPassword(char[] password)
Password for proxy server.
|
ProxyConfiguration.Builder |
setUsername(java.lang.String username)
Username for proxy server.
|
public Builder(ProxyConfiguration.Protocol protocol, java.lang.String server, long port, boolean enabled)
ProxyConfiguration
.public ProxyConfiguration.Builder setUsername(java.lang.String username)
Set
if proxy requires username.username
- New value for the property.public ProxyConfiguration.Builder setPassword(char[] password)
Set
if proxy requires password.password
- New value for the property.public ProxyConfiguration build()