Package com.cognite.client.config
Class ProxyConfig
java.lang.Object
com.cognite.client.config.ProxyConfig
Proxy server configuration.
This class holds the proxy server configuration used by the
CogniteClient. The default
configuration is no proxy.
You can specify the proxy server to use via configuration of 1) the proxy server and (optionally) 2) the
username and password to use for authentication.
ProxyConfig proxyConfig = ProxyConfig.of(new Proxy(Proxy.Type.HTTP, new InetSocketAddress(proxyHost, proxyPort)));
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Stringabstract ProxygetProxy()abstract Stringstatic ProxyConfigabstract ProxyConfig.Builderfinal StringtoString()withPassword(String password) Configures the proxy server authentication password.withUsername(String username) Configures the proxy server authentication username.
-
Constructor Details
-
ProxyConfig
public ProxyConfig()
-
-
Method Details
-
of
-
getProxy
-
getUsername
-
getPassword
-
toBuilder
-
withUsername
Configures the proxy server authentication username. The default configuration is no authentication. I.e. no username / password.- Parameters:
username- The username for the proxy authentication.- Returns:
- the proxy configuration object with the username specified.
-
withPassword
Configures the proxy server authentication password. The default configuration is no authentication. I.e. no username / password.- Parameters:
password- The password for the proxy authentication.- Returns:
- the proxy configuration object with the username specified.
-
toString
-