public final class ProxyProvider extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ProxyProvider.AddressSpec |
static interface |
ProxyProvider.Builder |
static class |
ProxyProvider.Proxy
Proxy Type
|
static interface |
ProxyProvider.TypeSpec |
| Modifier and Type | Method and Description |
|---|---|
String |
asDetailedString() |
String |
asSimpleString() |
static ProxyProvider.TypeSpec |
builder()
Creates a builder for
ProxyProvider |
boolean |
equals(Object o) |
static ProxyProvider |
findProxySupport(Bootstrap b)
Find Proxy support in the given client bootstrap
|
java.util.function.Supplier<? extends InetSocketAddress> |
getAddress()
The supplier for the address to connect to.
|
Pattern |
getNonProxyHosts()
Regular expression (
using java.util.regex) for a configured
list of hosts that should be reached directly, bypassing the proxy. |
ProxyProvider.Proxy |
getType()
The proxy type
|
int |
hashCode() |
ProxyHandler |
newProxyHandler()
Return a new eventual
ProxyHandler |
boolean |
shouldProxy(SocketAddress address)
Should proxy the given address
|
boolean |
shouldProxy(String hostName)
Should proxy the given hostname
|
String |
toString() |
public static ProxyProvider.TypeSpec builder()
ProxyProvider@Nullable public static ProxyProvider findProxySupport(Bootstrap b)
b - a bootstrap to searchProxyProvider found or nullpublic final ProxyProvider.Proxy getType()
public final java.util.function.Supplier<? extends InetSocketAddress> getAddress()
public final Pattern getNonProxyHosts()
using java.util.regex) for a configured
list of hosts that should be reached directly, bypassing the proxy.using java.util.regex) for
a configured list of hosts that should be reached directly, bypassing the
proxy.public final ProxyHandler newProxyHandler()
ProxyHandlerProxyHandlerpublic boolean shouldProxy(SocketAddress address)
address - the address to testInetSocketAddress and hostname candidate to proxypublic boolean shouldProxy(@Nullable String hostName)
hostName - the hostname to testpublic String asSimpleString()
public String asDetailedString()