public class ProxyConfiguration extends Object
Constructor | Description |
---|---|
ProxyConfiguration() |
Modifier and Type | Method | Description |
---|---|---|
Optional<String> |
getNonProxyHosts() |
Returns the optional hosts the client will access without going
through the proxy.
|
Optional<Protocol> |
getProtocol() |
Returns the protocol (HTTP or HTTPS) to use when connecting through proxy.
|
Optional<String> |
getProxyDomain() |
Returns the optional Windows domain name for configuring an NTLM proxy.
|
Optional<String> |
getProxyHost() |
Returns the optional proxy host the client will connect through.
|
Optional<String> |
getProxyPassword() |
Returns the optional proxy password to use if connecting
through a proxy.
|
Optional<Integer> |
getProxyPort() |
Returns either the proxyPort set on this object, or
if not provided, checks the value of the Java system property
for proxy port according to
getProtocol() : i.e. |
Optional<String> |
getProxyUsername() |
Returns the optional proxy user name to use if connecting
through a proxy.
|
Optional<String> |
getProxyWorkstation() |
Returns the optional Windows workstation name for configuring NTLM proxy support.
|
Optional<Boolean> |
isPreemptiveBasicProxyAuth() |
Returns whether to attempt to authenticate preemptively against proxy servers using basic
authentication.
|
ProxyConfiguration |
nonProxyHosts(String nonProxyHosts) |
Set the optional hosts the client will access without going
through the proxy.
|
ProxyConfiguration |
preemptiveBasicProxyAuth(boolean preemptiveBasicProxyAuth) |
Sets whether to attempt to authenticate preemptively against proxy servers using basic authentication.
|
ProxyConfiguration |
protocol(Protocol protocol) |
Sets the protocol (i.e.
|
ProxyConfiguration |
proxyDomain(String proxyDomain) |
Sets the optional Windows domain name for configuration an NTLM proxy.
|
ProxyConfiguration |
proxyHost(String proxyHost) |
Sets the optional proxy host the client will connect through.
|
ProxyConfiguration |
proxyPassword(String proxyPassword) |
Sets the optional proxy password to use when connecting through a proxy.
|
ProxyConfiguration |
proxyPort(int proxyPort) |
Sets the proxy port the client will connect through.
|
ProxyConfiguration |
proxyUsername(String proxyUsername) |
Sets the optional proxy user name to use if connecting through a proxy.
|
ProxyConfiguration |
proxyWorkstation(String proxyWorkstation) |
Sets the optional Windows workstation name for configuring NTLM proxy support.
|
void |
setNonProxyHosts(String nonProxyHosts) |
Set the optional hosts the client will access without going
through the proxy.
|
void |
setPreemptiveBasicProxyAuth(Boolean preemptiveBasicProxyAuth) |
Sets whether to attempt to authenticate preemptively against proxy servers using basic authentication.
|
void |
setProtocol(Protocol protocol) |
Sets the protocol (i.e.
|
void |
setProxyDomain(String proxyDomain) |
Sets the optional Windows domain name for configuration an NTLM proxy.
|
void |
setProxyHost(String proxyHost) |
Sets the optional proxy host the client will connect through.
|
void |
setProxyPassword(String proxyPassword) |
Sets the optional proxy password to use when connecting through a proxy.
|
void |
setProxyPort(Integer proxyPort) |
Sets the proxy port the client will connect through.
|
void |
setProxyUsername(String proxyUsername) |
Sets the optional proxy user name to use if connecting through a proxy.
|
void |
setProxyWorkstation(String proxyWorkstation) |
Sets the optional Windows workstation name for configuring NTLM proxy support.
|
public Optional<Protocol> getProtocol()
The default configuration is to use HTTPS for all requests for increased security.
public void setProtocol(Protocol protocol)
The default configuration is to use HTTPS for all requests for increased security.
protocol
- The protocol to use when connecting through proxy.public ProxyConfiguration protocol(Protocol protocol)
The default configuration is to use HTTPS for all requests for increased security.
protocol
- The protocol to use when connecting through proxy.public Optional<String> getProxyHost()
getProtocol()
:
i.e. if protocol is https, returns the value of the system property https.proxyHost,
otherwise returns value of http.proxyHost.public void setProxyHost(String proxyHost)
proxyHost
- The proxy host the client will connect through.public ProxyConfiguration proxyHost(String proxyHost)
proxyHost
- The proxy host the client will connect through.public Optional<Integer> getProxyPort()
getProtocol()
: i.e. if
protocol is https, returns the value of the system property
https.proxyPort, otherwise returns value of http.proxyPort.public void setProxyPort(Integer proxyPort)
proxyPort
- The proxy port the client will connect through.public ProxyConfiguration proxyPort(int proxyPort)
proxyPort
- The proxy port the client will connect through.public Optional<String> getProxyUsername()
getProtocol()
:
i.e. if protocol is https, returns the value of the system
property https.proxyUsername, otherwise returns value of
http.proxyUsername.public void setProxyUsername(String proxyUsername)
proxyUsername
- The proxy user name to use if connecting through a proxy.public ProxyConfiguration proxyUsername(String proxyUsername)
proxyUsername
- The proxy user name to use if connecting through a proxy.public Optional<String> getProxyPassword()
getProtocol()
:
i.e. if protocol is https, returns the value of the system
property https.proxyPassword, otherwise returns value of
http.proxyPassword.public void setProxyPassword(String proxyPassword)
proxyPassword
- The password to use when connecting through a proxy.public ProxyConfiguration proxyPassword(String proxyPassword)
proxyPassword
- The password to use when connecting through a proxy.public Optional<String> getProxyDomain()
public void setProxyDomain(String proxyDomain)
proxyDomain
- The optional Windows domain name for configuring an NTLM proxy.public ProxyConfiguration proxyDomain(String proxyDomain)
proxyDomain
- The optional Windows domain name for configuring an NTLM proxy.public Optional<String> getProxyWorkstation()
public void setProxyWorkstation(String proxyWorkstation)
proxyWorkstation
- The optional Windows workstation name for configuring NTLM proxy support.public ProxyConfiguration proxyWorkstation(String proxyWorkstation)
proxyWorkstation
- The optional Windows workstation name for configuring NTLM proxy support.public Optional<String> getNonProxyHosts()
getProtocol()
: i.e. if
protocol is https, returns null, otherwise returns value of http.nonProxyHosts.public void setNonProxyHosts(String nonProxyHosts)
nonProxyHosts
- The hosts the client will access without going through the proxy.public ProxyConfiguration nonProxyHosts(String nonProxyHosts)
nonProxyHosts
- The hosts the client will access without going through the proxy.public Optional<Boolean> isPreemptiveBasicProxyAuth()
public void setPreemptiveBasicProxyAuth(Boolean preemptiveBasicProxyAuth)
preemptiveBasicProxyAuth
- Whether to authenticate preemptively against proxy server.public ProxyConfiguration preemptiveBasicProxyAuth(boolean preemptiveBasicProxyAuth)
preemptiveBasicProxyAuth
- Whether to authenticate preemptively against proxy server.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.