Package io.grpc
Class HttpConnectProxiedSocketAddress
- java.lang.Object
-
- java.net.SocketAddress
-
- io.grpc.ProxiedSocketAddress
-
- io.grpc.HttpConnectProxiedSocketAddress
-
- All Implemented Interfaces:
java.io.Serializable
public final class HttpConnectProxiedSocketAddress extends ProxiedSocketAddress
AnProxiedSocketAddressfor making a connection to an endpoint via an HTTP CONNECT proxy.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHttpConnectProxiedSocketAddress.BuilderThe builder forHttpConnectProxiedSocketAddress.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.StringgetPassword()Returns the password used to connect to the proxy.java.net.SocketAddressgetProxyAddress()Returns the address to the proxy, which is already resolved.java.net.InetSocketAddressgetTargetAddress()Returns the address to the target server.java.lang.StringgetUsername()Returns the username used to connect to the proxy.inthashCode()static HttpConnectProxiedSocketAddress.BuildernewBuilder()Create a new builder.java.lang.StringtoString()
-
-
-
Method Detail
-
getPassword
@Nullable public java.lang.String getPassword()
Returns the password used to connect to the proxy.nullif there is no password.
-
getUsername
@Nullable public java.lang.String getUsername()
Returns the username used to connect to the proxy.nullif there is no username.
-
getProxyAddress
public java.net.SocketAddress getProxyAddress()
Returns the address to the proxy, which is already resolved.
-
getTargetAddress
public java.net.InetSocketAddress getTargetAddress()
Returns the address to the target server.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
newBuilder
public static HttpConnectProxiedSocketAddress.Builder newBuilder()
Create a new builder.
-
-