Package io.grpc

Interface ProxyDetector

    • Method Detail

      • proxyFor

        ProxiedSocketAddress proxyFor​(SocketAddress targetServerAddress)
                               throws IOException
        Given a target address, returns a proxied address if a proxy should be used. If no proxy should be used, then return value will be null.

        If the returned ProxiedSocketAddress contains any address that needs to be resolved locally, it should be resolved before it's returned, and this method throws if unable to resolve it.

        targetServerAddress - the target address, which is generally unresolved, because the proxy will resolve it.