Package io.grpc
Class HttpConnectProxiedSocketAddress
java.lang.Object
java.net.SocketAddress
io.grpc.ProxiedSocketAddress
io.grpc.HttpConnectProxiedSocketAddress
- All Implemented Interfaces:
Serializable
An
ProxiedSocketAddress
for making a connection to an endpoint via an HTTP CONNECT proxy.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
The builder forHttpConnectProxiedSocketAddress
. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private final SocketAddress
private static final long
private final InetSocketAddress
private final String
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
HttpConnectProxiedSocketAddress
(SocketAddress proxyAddress, InetSocketAddress targetAddress, String username, String password) -
Method Summary
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
proxyAddress
-
targetAddress
-
username
-
password
-
-
Constructor Details
-
HttpConnectProxiedSocketAddress
private HttpConnectProxiedSocketAddress(SocketAddress proxyAddress, InetSocketAddress targetAddress, @Nullable String username, @Nullable String password)
-
-
Method Details
-
getPassword
Returns the password used to connect to the proxy.null
if there is no password. -
getUsername
Returns the username used to connect to the proxy.null
if there is no username. -
getProxyAddress
Returns the address to the proxy, which is already resolved. -
getTargetAddress
Returns the address to the target server. -
equals
-
hashCode
public int hashCode() -
toString
-
newBuilder
Create a new builder.
-