Package io.grpc
Class HttpConnectProxiedSocketAddress.Builder
- java.lang.Object
-
- io.grpc.HttpConnectProxiedSocketAddress.Builder
-
- Enclosing class:
- HttpConnectProxiedSocketAddress
public static final class HttpConnectProxiedSocketAddress.Builder extends Object
The builder forHttpConnectProxiedSocketAddress
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpConnectProxiedSocketAddress
build()
Creates anHttpConnectProxiedSocketAddress
.HttpConnectProxiedSocketAddress.Builder
setPassword(String password)
Sets the password used to connect to the proxy.HttpConnectProxiedSocketAddress.Builder
setProxyAddress(SocketAddress proxyAddress)
Sets the address to the proxy, which is already resolved.HttpConnectProxiedSocketAddress.Builder
setTargetAddress(InetSocketAddress targetAddress)
Sets the address to the target.HttpConnectProxiedSocketAddress.Builder
setUsername(String username)
Sets the username used to connect to the proxy.
-
-
-
Method Detail
-
setProxyAddress
public HttpConnectProxiedSocketAddress.Builder setProxyAddress(SocketAddress proxyAddress)
Sets the address to the proxy, which is already resolved. This is a required field.
-
setTargetAddress
public HttpConnectProxiedSocketAddress.Builder setTargetAddress(InetSocketAddress targetAddress)
Sets the address to the target. This is a required field.
-
setUsername
public HttpConnectProxiedSocketAddress.Builder setUsername(@Nullable String username)
Sets the username used to connect to the proxy. This is an optional field and can benull
.
-
setPassword
public HttpConnectProxiedSocketAddress.Builder setPassword(@Nullable String password)
Sets the password used to connect to the proxy. This is an optional field and can benull
.
-
build
public HttpConnectProxiedSocketAddress build()
Creates anHttpConnectProxiedSocketAddress
.
-
-