Package io.grpc

Interface ProxyDetector

    • Method Detail

      • proxyFor

        @Nullable
        ProxiedSocketAddress proxyFor​(java.net.SocketAddress targetServerAddress)
                               throws java.io.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.

        Parameters:
        targetServerAddress - the target address, which is generally unresolved, because the proxy will resolve it.
        Throws:
        java.io.IOException