Interface HttpDestinationProperties
- All Superinterfaces:
Destination,DestinationProperties
- All Known Subinterfaces:
HttpDestination
- All Known Implementing Classes:
DefaultHttpDestination,TransparentProxyDestination
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>TheProxyConfigurationto be used when communicating over HTTP.io.vavr.control.Option<ProxyType>Returns theProxyTypethat is configured for this destination.default SecurityConfigurationStrategyDefines from how theSSLContextfor 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 theURIto communicate with.booleanIndicates 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, isRfcMethods inherited from interface com.sap.cloud.sdk.cloudplatform.connectivity.DestinationProperties
get, get, get, get, getPropertyNames
-
Method Details
-
getUri
Getter for theURIto communicate with.This is a mandatory property of a HttpDestination.
- Returns:
- The
URIto 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
Optionwrapping the TLS version to use, if any.
-
getProxyConfiguration
TheProxyConfigurationto be used when communicating over HTTP.- Returns:
- An
Optionwrapping theProxyConfigurationto use, if any.
-
getKeyStore
The KeyStore to be used when communicating over HTTP.- Returns:
- An
Optionwrapping the KeyStore to use, if any.
-
getKeyStorePassword
The password for the Key Store to be used when communicating over HTTP.- Returns:
- An
Optionwrapping the password to use, if any.
-
isTrustingAllCertificates
boolean isTrustingAllCertificates()Indicates whether all server certificates should be accepted when communicating over HTTP.- Returns:
trueif all certificates should be accepted,falseotherwise.
-
getBasicCredentials
Returns the basic credentials to be used for authentication at the remote system.- Returns:
- An
Optionwrapping theBasicCredentialsto use, if any.
-
getAuthenticationType
Returns the authentication type to be expected when authenticating at the remote system.- Returns:
- This destination authentication type.
-
getProxyType
Returns theProxyTypethat is configured for this destination.- Returns:
- An
Optionwrapping theProxyTypeto 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 theSSLContextfor outbound HTTP calls via this destination is determined from.- Returns:
- The optional
SecurityConfigurationStrategyof the destination
-