Class ProxySettings.Builder
java.lang.Object
com.here.platform.data.client.base.http.settings.ProxySettings.Builder
- Enclosing class:
- ProxySettings
Build a new proxy settings.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newProxySettings.withCredentials(ProxyCredentials credentials) Set proxy credentials.Set proxy host.Set proxy port.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Builds a newProxySettings.All properties are required.
All properties are tested for validity. If invalid a
IllegalArgumentExceptionis thrown.- Returns:
- the ProxySettings object
- Throws:
IllegalArgumentException- if any properties are not valid
-
withCredentials
Set proxy credentials.- Parameters:
credentials- proxy credentials object- Returns:
- this builder
-
withHost
Set proxy host.- Parameters:
host- proxy host- Returns:
- this builder
-
withPort
Set proxy port.- Parameters:
port- proxy port- Returns:
- this builder
-