public static class ProxyServerConfig.Builder extends Object
ProxyServerConfig
instance.Modifier and Type | Field and Description |
---|---|
ProxyAuthenticationCredentials |
credentials |
String |
host |
Integer |
port |
ProxyScheme |
scheme |
Constructor and Description |
---|
Builder()
Constructs a
Builder instance. |
Modifier and Type | Method and Description |
---|---|
ProxyServerConfig |
build()
Returns a new
ProxyServerConfig instance built from the current state of this builder. |
ProxyServerConfig.Builder |
withCredentials(ProxyAuthenticationCredentials credentials)
Sets the credentials for authenticating with a proxy server.
|
ProxyServerConfig.Builder |
withHost(String host)
Sets the host name of proxy server.
|
ProxyServerConfig.Builder |
withPort(Integer port)
Sets the port number of proxy server.
|
ProxyServerConfig.Builder |
withProxyScheme(ProxyScheme proxyScheme)
Sets the scheme of proxy server.
|
public String host
public Integer port
public ProxyScheme scheme
public ProxyAuthenticationCredentials credentials
public ProxyServerConfig.Builder withHost(String host)
host
- Host name. Cannot be null or emptypublic ProxyServerConfig.Builder withPort(Integer port)
port
- Port number.public ProxyServerConfig.Builder withProxyScheme(ProxyScheme proxyScheme)
proxyScheme
- Proxy scheme. See ProxyScheme
for scheme values. Cannot be nullpublic ProxyServerConfig.Builder withCredentials(ProxyAuthenticationCredentials credentials)
credentials
- a ProxyAuthenticationCredentials
instance. Cannot be nullpublic ProxyServerConfig build()
ProxyServerConfig
instance built from the current state of this builder.ProxyServerConfig
instanceCopyright © 2023 Adobe. All rights reserved.