Class DefaultErpHttpDestination
java.lang.Object
com.sap.cloud.sdk.s4hana.connectivity.DefaultErpHttpDestination
- All Implemented Interfaces:
DestinationProperties,HttpDestination,HttpDestinationProperties,ErpHttpDestination,ErpHttpDestinationProperties
Delegator implementation of the
ErpHttpDestination interface, delegating all
HttpDestinationProperties calls to the wrapped destination.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class to allow for easy creation of an immutableDefaultErpHttpDestinationinstance. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe header which will get the stored Locale set.static final StringThe header which will get the stored SapClient set.Fields inherited from interface com.sap.cloud.sdk.s4hana.connectivity.ErpHttpDestinationProperties
LOCALE_KEY, SAP_CLIENT_KEYFields inherited from interface com.sap.cloud.sdk.cloudplatform.connectivity.HttpDestinationProperties
HEADER_PROPERTY -
Constructor Summary
ConstructorsConstructorDescriptionDefaultErpHttpDestination(HttpDestinationProperties baseDestination) Constructor wrapping the given destination and redirecting allHttpDestinationPropertiescalls to the given destination. -
Method Summary
Modifier and TypeMethodDescriptionStarts a builder to be used to create aDefaultErpHttpDestinationwith some properties.Starts a builder to be used to create aDefaultErpHttpDestinationwith some properties.protected booleanbooleanio.vavr.control.Option<Object>io.vavr.control.Option<BasicCredentials>getHeaders(URI requestUri) io.vavr.control.Option<KeyStore>io.vavr.control.Option<String>io.vavr.control.Option<String>getName()Get the destination name.io.vavr.control.Option<ProxyConfiguration>io.vavr.control.Option<ProxyType>io.vavr.control.Option<String>io.vavr.control.Option<KeyStore>io.vavr.control.Option<String>getUri()inthashCode()booleanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sap.cloud.sdk.cloudplatform.connectivity.DestinationProperties
get, get, getMethods inherited from interface com.sap.cloud.sdk.s4hana.connectivity.ErpHttpDestinationProperties
getLocale, getSapClientMethods inherited from interface com.sap.cloud.sdk.cloudplatform.connectivity.HttpDestination
decorateMethods inherited from interface com.sap.cloud.sdk.cloudplatform.connectivity.HttpDestinationProperties
getHeadersFromProperties, getSecurityConfigurationStrategy
-
Field Details
-
SAP_CLIENT_HEADER_NAME
The header which will get the stored SapClient set.- See Also:
-
LOCALE_HEADER_NAME
The header which will get the stored Locale set.- See Also:
-
-
Constructor Details
-
DefaultErpHttpDestination
Constructor wrapping the given destination and redirecting allHttpDestinationPropertiescalls to the given destination.- Parameters:
baseDestination- The destination to wrap.
-
-
Method Details
-
get
- Specified by:
getin interfaceDestinationProperties
-
getPropertyNames
- Specified by:
getPropertyNamesin interfaceDestinationProperties
-
getUri
- Specified by:
getUriin interfaceHttpDestinationProperties
-
getTlsVersion
- Specified by:
getTlsVersionin interfaceHttpDestinationProperties
-
getProxyConfiguration
- Specified by:
getProxyConfigurationin interfaceHttpDestinationProperties
-
getKeyStore
- Specified by:
getKeyStorein interfaceHttpDestinationProperties
-
getKeyStorePassword
- Specified by:
getKeyStorePasswordin interfaceHttpDestinationProperties
-
isTrustingAllCertificates
public boolean isTrustingAllCertificates()- Specified by:
isTrustingAllCertificatesin interfaceHttpDestinationProperties
-
getBasicCredentials
- Specified by:
getBasicCredentialsin interfaceHttpDestinationProperties
-
getProxyType
- Specified by:
getProxyTypein interfaceHttpDestinationProperties
-
getName
Get the destination name.- Returns:
- The destination name.
-
getTrustStore
- Specified by:
getTrustStorein interfaceHttpDestinationProperties
-
getTrustStorePassword
- Specified by:
getTrustStorePasswordin interfaceHttpDestinationProperties
-
getAuthenticationType
- Specified by:
getAuthenticationTypein interfaceHttpDestinationProperties
-
getHeaders
- Specified by:
getHeadersin interfaceHttpDestinationProperties
-
builder
Starts a builder to be used to create aDefaultErpHttpDestinationwith some properties.- Parameters:
uri- The uri of theDefaultErpHttpDestinationto be created.- Returns:
- A new
Builderinstance.
-
builder
Starts a builder to be used to create aDefaultErpHttpDestinationwith some properties.- Parameters:
uri- The uri of theDefaultErpHttpDestinationto be created. In case this is no valid URI anIllegalArgumentExceptionis thrown.- Returns:
- A new
Builderinstance. - Throws:
IllegalArgumentException- if the givenuriis no valid URI.
-
equals
-
canEqual
-
hashCode
public int hashCode()
-