Interface HttpDestinationProperties
- All Superinterfaces:
Destination
,DestinationProperties
- All Known Subinterfaces:
HttpDestination
- All Known Implementing Classes:
DefaultHttpDestination
Adds HTTP relevant fields to the "generic" destination.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the authentication type to be expected when authenticating at the remote system.io.vavr.control.Option<BasicCredentials>
Returns the basic credentials to be used for authentication at the remote system.default Collection<Header>
Convenience method to get the headers for a request against the destination's URI.getHeaders
(URI requestUri) Getter for a collection of headers that should be added to the outgoing request for this destination.io.vavr.control.Option<KeyStore>
The KeyStore to be used when communicating over HTTP.io.vavr.control.Option<String>
The password for the Key Store to be used when communicating over HTTP.io.vavr.control.Option<ProxyConfiguration>
TheProxyConfiguration
to be used when communicating over HTTP.io.vavr.control.Option<ProxyType>
Returns theProxyType
that is configured for this destination.default SecurityConfigurationStrategy
Defines from how theSSLContext
for outbound HTTP calls via this destination is determined from.io.vavr.control.Option<String>
The TLS version to be used when communicating over HTTP.io.vavr.control.Option<KeyStore>
Returns the optional trust store of the destination.io.vavr.control.Option<String>
Returns the optional trust store password of the destination.getUri()
Getter for theURI
to communicate with.boolean
Indicates whether all server certificates should be accepted when communicating over HTTP.Methods inherited from interface com.sap.cloud.sdk.cloudplatform.connectivity.Destination
asHttp, asRfc, isHttp, isRfc
Methods inherited from interface com.sap.cloud.sdk.cloudplatform.connectivity.DestinationProperties
get, get, get, get, getPropertyNames
-
Method Details
-
getUri
Getter for theURI
to communicate with.This is a mandatory property of a HttpDestination.
- Returns:
- The
URI
to be used with this destination.
-
getHeaders
Getter for a collection of headers that should be added to the outgoing request for this destination.- Parameters:
requestUri
- The target URI of a request to which HTTP headers should be added.- Returns:
- A collection with all headers to be used when communicating with the target of the destination.
-
getHeaders
Convenience method to get the headers for a request against the destination's URI.- Returns:
- the headers of this destination.
- See Also:
-
getTlsVersion
The TLS version to be used when communicating over HTTP.- Returns:
- An
Option
wrapping the TLS version to use, if any.
-
getProxyConfiguration
TheProxyConfiguration
to be used when communicating over HTTP.- Returns:
- An
Option
wrapping theProxyConfiguration
to use, if any.
-
getKeyStore
The KeyStore to be used when communicating over HTTP.- Returns:
- An
Option
wrapping the KeyStore to use, if any.
-
getKeyStorePassword
The password for the Key Store to be used when communicating over HTTP.- Returns:
- An
Option
wrapping the password to use, if any.
-
isTrustingAllCertificates
boolean isTrustingAllCertificates()Indicates whether all server certificates should be accepted when communicating over HTTP.- Returns:
true
if all certificates should be accepted,false
otherwise.
-
getBasicCredentials
Returns the basic credentials to be used for authentication at the remote system.- Returns:
- An
Option
wrapping theBasicCredentials
to use, if any.
-
getAuthenticationType
Returns the authentication type to be expected when authenticating at the remote system.- Returns:
- This destination authentication type.
-
getProxyType
Returns theProxyType
that is configured for this destination.- Returns:
- An
Option
wrapping theProxyType
to use, if any.
-
getTrustStore
Returns the optional trust store of the destination.- Returns:
- The optional trust store of the destination.
- Throws:
DestinationAccessException
- If there is an issue accessing the trust store.
-
getTrustStorePassword
Returns the optional trust store password of the destination.- Returns:
- The optional trust store password of the destination.
-
getSecurityConfigurationStrategy
Defines from how theSSLContext
for outbound HTTP calls via this destination is determined from.- Returns:
- The optional
SecurityConfigurationStrategy
of the destination
-