public final class ProxyProvider
extends java.lang.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 |
---|---|
java.lang.String |
asDetailedString() |
java.lang.String |
asSimpleString() |
static ProxyProvider.TypeSpec |
builder()
Creates a builder for
ProxyProvider |
java.util.function.Supplier<? extends java.net.InetSocketAddress> |
getAddress()
The supplier for the address to connect to.
|
java.util.regex.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
|
ProxyHandler |
newProxyHandler()
Return a new eventual
ProxyHandler |
boolean |
shouldProxy(java.net.SocketAddress address)
Should proxy the given address
|
boolean |
shouldProxy(java.lang.String hostName)
Should proxy the given hostname
|
java.lang.String |
toString() |
public static ProxyProvider.TypeSpec builder()
ProxyProvider
public final ProxyProvider.Proxy getType()
public final java.util.function.Supplier<? extends java.net.InetSocketAddress> getAddress()
public final java.util.regex.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()
ProxyHandler
ProxyHandler
public boolean shouldProxy(java.net.SocketAddress address)
address
- the address to testInetSocketAddress
and hostname candidate to proxypublic boolean shouldProxy(@Nullable java.lang.String hostName)
hostName
- the hostname to testpublic java.lang.String asSimpleString()
public java.lang.String asDetailedString()
public java.lang.String toString()
toString
in class java.lang.Object