Class ProxyConfiguration
java.lang.Object
com.sap.cloud.sdk.cloudplatform.connectivity.ProxyConfiguration
Proxy configuration.
-
Constructor Summary
ConstructorDescriptionProxyConfiguration
(URI uri) Creates a configuration based on the given URI and without any credentials.ProxyConfiguration
(URI uri, Credentials credentials) Creates a configuration based on the given URI and credentials. -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
io.vavr.control.Option<Credentials>
Getter for the credentials, wrapped in anOption
, as it may be null.getUri()
int
hashCode()
static ProxyConfiguration
Static factory to create a configuration bsaed on an URI (as a String).static ProxyConfiguration
of
(String uri, Credentials credentials) Static factory to create a configuration based on an URI (as a String) and credentials.static ProxyConfiguration
Static factory to create a configuration solely based on an URI.static ProxyConfiguration
of
(URI uri, Credentials credentials) Static factory to create a configuration based on an URI and credentials.toString()
-
Constructor Details
-
ProxyConfiguration
Creates a configuration based on the given URI and without any credentials.- Parameters:
uri
- The URI to initiate the configuration with.
-
ProxyConfiguration
Creates a configuration based on the given URI and credentials.- Parameters:
uri
- The URI to initiate the configuration with.credentials
- The credentials that can be used to connect to a remote.
-
-
Method Details
-
getCredentials
Getter for the credentials, wrapped in anOption
, as it may be null.- Returns:
- The credentials of this configuration.
-
of
Static factory to create a configuration based on an URI and credentials.- Parameters:
uri
- The URI to initiate the configuration with.credentials
- The credentials that can be used to connect to a remote.- Returns:
- A configuration based on the given parameter.
-
of
Static factory to create a configuration solely based on an URI.- Parameters:
uri
- The URI to initiate the configuration with.- Returns:
- A configuration based on the given URI.
-
of
@Nonnull public static ProxyConfiguration of(@Nonnull String uri, @Nullable Credentials credentials) throws IllegalArgumentException Static factory to create a configuration based on an URI (as a String) and credentials.- Parameters:
uri
- The URI string to initiate the configuration with.credentials
- The credentials that can be used to connect to a remote.- Returns:
- A configuration based on the given parameter.
- Throws:
IllegalArgumentException
- if the URI String cannot be parsed as an URI.
-
of
Static factory to create a configuration bsaed on an URI (as a String).- Parameters:
uri
- The URI string to initiate the configuration with.- Returns:
- A configuration based on the given URI.
- Throws:
IllegalArgumentException
- if the URI String cannot be parsed as an URI.
-
getUri
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-