Package io.grpc
Class HttpConnectProxiedSocketAddress.Builder
java.lang.Object
io.grpc.HttpConnectProxiedSocketAddress.Builder
- Enclosing class:
HttpConnectProxiedSocketAddress
The builder for
HttpConnectProxiedSocketAddress
.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
private SocketAddress
private InetSocketAddress
private String
-
Constructor Summary
Constructors -
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.
-
Field Details
-
proxyAddress
-
targetAddress
-
username
-
password
-
-
Constructor Details
-
Builder
private Builder()
-
-
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
.
-