Package io.grpc

Class HttpConnectProxiedSocketAddress

All Implemented Interfaces:
Serializable

public final class HttpConnectProxiedSocketAddress extends ProxiedSocketAddress
An ProxiedSocketAddress for making a connection to an endpoint via an HTTP CONNECT proxy.
See Also:
  • Method Details

    • getPassword

      @Nullable public String getPassword()
      Returns the password used to connect to the proxy. null if there is no password.
    • getUsername

      @Nullable public String getUsername()
      Returns the username used to connect to the proxy. null if there is no username.
    • getProxyAddress

      public SocketAddress getProxyAddress()
      Returns the address to the proxy, which is already resolved.
    • getTargetAddress

      public InetSocketAddress getTargetAddress()
      Returns the address to the target server.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • newBuilder

      public static HttpConnectProxiedSocketAddress.Builder newBuilder()
      Create a new builder.