public interface ProxyDetector
SocketAddress
. This class performs network requests to resolve address names,
and should only be used in places that are expected to do IO such as the
NameResolver
.Modifier and Type | Method and Description |
---|---|
ProxyParameters |
proxyFor(SocketAddress targetServerAddress)
Given a target address, returns which proxy address should be used.
|
@Nullable ProxyParameters proxyFor(SocketAddress targetServerAddress) throws IOException
ProxyParameters
is always
resolved. This throws if the proxy address cannot be resolved.IOException
Copyright © 2018. All rights reserved.