public static interface ProxyProvider.Builder
| Modifier and Type | Method and Description |
|---|---|
ProxyProvider |
build()
Builds new ProxyProvider
|
ProxyProvider.Builder |
connectTimeoutMillis(long connectTimeoutMillis)
The proxy connect timeout in millis.
|
ProxyProvider.Builder |
httpHeaders(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 |
nonProxyHostsPredicate(Predicate<SocketAddress> nonProxyHostsPredicate)
A standard predicate expression for a configured list of hosts that should be reached directly, bypassing
the proxy.
|
ProxyProvider.Builder |
password(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(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 nonProxyHostsPredicate(Predicate<SocketAddress> nonProxyHostsPredicate)
nonProxyHostsPredicate - A Predicate Predicate on SocketAddress that returns
true if the host should bypass the configured proxythisProxyProvider.Builder httpHeaders(Consumer<HttpHeaders> headers)
headers - A consumer to add request headers for the http proxy.thisProxyProvider.Builder connectTimeoutMillis(long connectTimeoutMillis)
connectTimeoutMillis - The proxy connect timeout in millis.thisProxyProvider build()