Package reactor.netty.transport
Interface ProxyProvider.Builder
- Enclosing class:
- ProxyProvider
public static interface ProxyProvider.Builder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds new ProxyProvider.connectTimeoutMillis
(long connectTimeoutMillis) The proxy connect timeout in millis.httpHeaders
(Consumer<HttpHeaders> headers) A consumer to add request headers for the http proxy.nonProxyHosts
(String nonProxyHostsPattern) Regular expression (using java.util.regex
) for a configured list of hosts that should be reached directly, bypassing the proxy.nonProxyHostsPredicate
(Predicate<SocketAddress> nonProxyHostsPredicate) A standard predicate expression for a configured list of hosts that should be reached directly, bypassing the proxy.A function to supply the proxy's password from the username.port
(int port) The proxy port to connect to.The proxy username.
-
Method Details
-
username
The proxy username.- Parameters:
username
- The proxy username.- Returns:
this
-
password
A function to supply the proxy's password from the username.- Parameters:
password
- A function to supply the proxy's password from the username.- Returns:
this
-
port
The proxy port to connect to.- Parameters:
port
- The proxy port to connect to.- Returns:
this
-
nonProxyHosts
Regular expression (using java.util.regex
) for a configured list of hosts that should be reached directly, bypassing the proxy.- Parameters:
nonProxyHostsPattern
- Regular expression (using java.util.regex
) for a configured list of hosts that should be reached directly, bypassing the proxy.- Returns:
this
-
nonProxyHostsPredicate
A standard predicate expression for a configured list of hosts that should be reached directly, bypassing the proxy.- Parameters:
nonProxyHostsPredicate
- A PredicatePredicate
onSocketAddress
that returns true if the host should bypass the configured proxy- Returns:
this
- Since:
- 0.9.10
-
httpHeaders
A consumer to add request headers for the http proxy.- Parameters:
headers
- A consumer to add request headers for the http proxy.- Returns:
this
-
connectTimeoutMillis
The proxy connect timeout in millis. Default to 10000 ms. If this value set as non-positive value, there is no connect timeout.- Parameters:
connectTimeoutMillis
- The proxy connect timeout in millis.- Returns:
this
-
build
ProxyProvider build()Builds new ProxyProvider.- Returns:
- builds new ProxyProvider
-