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
AnProxiedSocketAddress
for 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 class
HttpConnectProxiedSocketAddress.Builder
The builder forHttpConnectProxiedSocketAddress
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getPassword()
Returns the password used to connect to the proxy.java.net.SocketAddress
getProxyAddress()
Returns the address to the proxy, which is already resolved.java.net.InetSocketAddress
getTargetAddress()
Returns the address to the target server.java.lang.String
getUsername()
Returns the username used to connect to the proxy.int
hashCode()
static HttpConnectProxiedSocketAddress.Builder
newBuilder()
Create a new builder.java.lang.String
toString()
-
-
-
Method Detail
-
getPassword
@Nullable public java.lang.String getPassword()
Returns the password used to connect to the proxy.null
if there is no password.
-
getUsername
@Nullable public java.lang.String getUsername()
Returns the username used to connect to the proxy.null
if 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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
newBuilder
public static HttpConnectProxiedSocketAddress.Builder newBuilder()
Create a new builder.
-
-