Package io.grpc
Class HttpConnectProxiedSocketAddress
- java.lang.Object
-
- java.net.SocketAddress
-
- io.grpc.ProxiedSocketAddress
-
- io.grpc.HttpConnectProxiedSocketAddress
-
- All Implemented Interfaces:
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(Object o)
String
getPassword()
Returns the password used to connect to the proxy.SocketAddress
getProxyAddress()
Returns the address to the proxy, which is already resolved.InetSocketAddress
getTargetAddress()
Returns the address to the target server.String
getUsername()
Returns the username used to connect to the proxy.int
hashCode()
static HttpConnectProxiedSocketAddress.Builder
newBuilder()
Create a new builder.String
toString()
-
-
-
Method Detail
-
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.
-
newBuilder
public static HttpConnectProxiedSocketAddress.Builder newBuilder()
Create a new builder.
-
-