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
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(Object o)Map<String,String>getHeaders()Returns the custom HTTP headers to be sent during the HTTP CONNECT handshake.StringgetPassword()Returns the password used to connect to the proxy.SocketAddressgetProxyAddress()Returns the address to the proxy, which is already resolved.InetSocketAddressgetTargetAddress()Returns the address to the target server.StringgetUsername()Returns the username used to connect to the proxy.inthashCode()static HttpConnectProxiedSocketAddress.BuildernewBuilder()Create a new builder.StringtoString()
-
-
-
Method Detail
-
getPassword
@Nullable public String getPassword()
Returns the password used to connect to the proxy.nullif there is no password.
-
getUsername
@Nullable public String getUsername()
Returns the username used to connect to the proxy.nullif 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.
-
getHeaders
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/12479") public Map<String,String> getHeaders()
Returns the custom HTTP headers to be sent during the HTTP CONNECT handshake.
-
newBuilder
public static HttpConnectProxiedSocketAddress.Builder newBuilder()
Create a new builder.
-
-