public static final class ProxyConfiguration.Builder
extends java.lang.Object
ProxyConfiguration
.Constructor and Description |
---|
Builder(ProxyConfiguration.Protocol protocol,
long port)
Constructor with parameters for the required properties of
ProxyConfiguration . |
Modifier and Type | Method and Description |
---|---|
ProxyConfiguration |
build() |
ProxyConfiguration.Builder |
setEnabled(java.lang.Boolean enabled)
In the result of the
#get and #list methods this property
indicates whether proxying is enabled for a particular protocol. |
ProxyConfiguration.Builder |
setPassword(char[] password)
Password for proxy server.
|
ProxyConfiguration.Builder |
setServer(java.lang.String server)
URL of the proxy server
Only
Set if server set in ProxyConfiguration. |
ProxyConfiguration.Builder |
setUsername(java.lang.String username)
Username for proxy server.
|
public Builder(ProxyConfiguration.Protocol protocol, long port)
ProxyConfiguration
.public ProxyConfiguration.Builder setServer(java.lang.String server)
Set
if server set in ProxyConfiguration.server
- New value for the property.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.Builder setEnabled(java.lang.Boolean enabled)
#get
and #list
methods this property
indicates whether proxying is enabled for a particular protocol. In the input to
the test
and set
methods this property specifies whether
proxying should be enabled for a particular protocol.enabled
- New value for the property.public ProxyConfiguration build()