public static interface ProxyProvider.Builder
| Modifier and Type | Method and Description |
|---|---|
ProxyProvider |
build()
Builds new ProxyProvider
|
ProxyProvider.Builder |
httpHeaders(java.util.function.Consumer<HttpHeaders> headers)
A consumer to add request headers for the http proxy.
|
ProxyProvider.Builder |
nonProxyHosts(String nonProxyHostsPattern)
Regular expression (
using java.util.regex) for a configured
list of hosts that should be reached directly, bypassing the proxy. |
ProxyProvider.Builder |
password(java.util.function.Function<? super String,? extends String> password)
A function to supply the proxy's password from the username.
|
ProxyProvider.Builder |
port(int port)
The proxy port to connect to.
|
ProxyProvider.Builder |
username(String username)
The proxy username.
|
ProxyProvider.Builder username(String username)
username - The proxy username.thisProxyProvider.Builder password(java.util.function.Function<? super String,? extends String> password)
password - A function to supply the proxy's password from the username.thisProxyProvider.Builder port(int port)
port - The proxy port to connect to.thisProxyProvider.Builder nonProxyHosts(String nonProxyHostsPattern)
using java.util.regex) for a configured
list of hosts that should be reached directly, bypassing the proxy.nonProxyHostsPattern - Regular expression (using java.util.regex)
for a configured list of hosts that should be reached directly, bypassing the proxy.thisProxyProvider.Builder httpHeaders(java.util.function.Consumer<HttpHeaders> headers)
headers - A consumer to add request headers for the http proxy.thisProxyProvider build()