Package io.grpc
Class HttpConnectProxiedSocketAddress.Builder
java.lang.Object
io.grpc.HttpConnectProxiedSocketAddress.Builder
- Enclosing class:
HttpConnectProxiedSocketAddress
The builder for
HttpConnectProxiedSocketAddress
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates anHttpConnectProxiedSocketAddress
.setPassword
(String password) Sets the password used to connect to the proxy.setProxyAddress
(SocketAddress proxyAddress) Sets the address to the proxy, which is already resolved.setTargetAddress
(InetSocketAddress targetAddress) Sets the address to the target.setUsername
(String username) Sets the username used to connect to the proxy.
-
Method Details
-
setProxyAddress
Sets the address to the proxy, which is already resolved. This is a required field. -
setTargetAddress
Sets the address to the target. This is a required field. -
setUsername
Sets the username used to connect to the proxy. This is an optional field and can benull
. -
setPassword
Sets the password used to connect to the proxy. This is an optional field and can benull
. -
build
Creates anHttpConnectProxiedSocketAddress
.
-