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 |
boolean |
equals(java.lang.Object o) |
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
|
int |
hashCode() |
io.netty.handler.proxy.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()
ProxyProviderpublic 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 io.netty.handler.proxy.ProxyHandler newProxyHandler()
ProxyHandlerProxyHandlerpublic 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.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object