@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/5279") public final class HttpConnectProxiedSocketAddress extends ProxiedSocketAddress
ProxiedSocketAddress
for making a connection to an endpoint via an HTTP CONNECT proxy.Modifier and Type | Class and Description |
---|---|
static class |
HttpConnectProxiedSocketAddress.Builder
The builder for
HttpConnectProxiedSocketAddress . |
Modifier and Type | Method and 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() |
@Nullable public String getPassword()
null
if there is no password.@Nullable public String getUsername()
null
if there is no username.public SocketAddress getProxyAddress()
public InetSocketAddress getTargetAddress()
public static HttpConnectProxiedSocketAddress.Builder newBuilder()