public class DefaultErpHttpDestination extends Object implements ErpHttpDestination
ErpHttpDestination interface, delegating all
HttpDestinationProperties calls to the wrapped destination.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultErpHttpDestination.Builder
Builder class to allow for easy creation of an immutable
DefaultErpHttpDestination instance. |
| Modifier and Type | Field and Description |
|---|---|
static String |
LOCALE_HEADER_NAME
The header which will get the stored Locale set.
|
static String |
SAP_CLIENT_HEADER_NAME
The header which will get the stored SapClient set.
|
LOCALE_KEY, SAP_CLIENT_KEYHEADER_PROPERTY| Constructor and Description |
|---|
DefaultErpHttpDestination(HttpDestinationProperties baseDestination)
Constructor wrapping the given destination and redirecting all
HttpDestinationProperties calls to the
given destination. |
| Modifier and Type | Method and Description |
|---|---|
static DefaultErpHttpDestination.Builder |
builder(String uri)
Starts a builder to be used to create a
DefaultErpHttpDestination with some properties. |
static DefaultErpHttpDestination.Builder |
builder(URI uri)
Starts a builder to be used to create a
DefaultErpHttpDestination with some properties. |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
io.vavr.control.Option<Object> |
get(String key) |
AuthenticationType |
getAuthenticationType() |
io.vavr.control.Option<BasicCredentials> |
getBasicCredentials() |
Collection<Header> |
getHeaders(URI requestUri) |
io.vavr.control.Option<KeyStore> |
getKeyStore() |
io.vavr.control.Option<String> |
getKeyStorePassword() |
io.vavr.control.Option<String> |
getName()
Get the destination name.
|
Iterable<String> |
getPropertyNames() |
io.vavr.control.Option<ProxyConfiguration> |
getProxyConfiguration() |
io.vavr.control.Option<ProxyType> |
getProxyType() |
io.vavr.control.Option<String> |
getTlsVersion() |
io.vavr.control.Option<KeyStore> |
getTrustStore() |
io.vavr.control.Option<String> |
getTrustStorePassword() |
URI |
getUri() |
int |
hashCode() |
boolean |
isTrustingAllCertificates() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetLocale, getSapClientdecorategetHeadersFromProperties, getSecurityConfigurationStrategyget, get, getpublic static final String SAP_CLIENT_HEADER_NAME
public static final String LOCALE_HEADER_NAME
public DefaultErpHttpDestination(@Nonnull HttpDestinationProperties baseDestination)
HttpDestinationProperties calls to the
given destination.baseDestination - The destination to wrap.@Nonnull public io.vavr.control.Option<Object> get(@Nonnull String key)
get in interface DestinationProperties@Nonnull public Iterable<String> getPropertyNames()
getPropertyNames in interface DestinationProperties@Nonnull public URI getUri()
getUri in interface HttpDestinationProperties@Nonnull public io.vavr.control.Option<String> getTlsVersion()
getTlsVersion in interface HttpDestinationProperties@Nonnull public io.vavr.control.Option<ProxyConfiguration> getProxyConfiguration()
getProxyConfiguration in interface HttpDestinationProperties@Nonnull public io.vavr.control.Option<KeyStore> getKeyStore()
getKeyStore in interface HttpDestinationProperties@Nonnull public io.vavr.control.Option<String> getKeyStorePassword()
getKeyStorePassword in interface HttpDestinationPropertiespublic boolean isTrustingAllCertificates()
isTrustingAllCertificates in interface HttpDestinationProperties@Nonnull public io.vavr.control.Option<BasicCredentials> getBasicCredentials()
getBasicCredentials in interface HttpDestinationProperties@Nonnull public io.vavr.control.Option<ProxyType> getProxyType()
getProxyType in interface HttpDestinationProperties@Nonnull public io.vavr.control.Option<String> getName()
@Nonnull public io.vavr.control.Option<KeyStore> getTrustStore()
getTrustStore in interface HttpDestinationProperties@Nonnull public io.vavr.control.Option<String> getTrustStorePassword()
getTrustStorePassword in interface HttpDestinationProperties@Nonnull public AuthenticationType getAuthenticationType()
getAuthenticationType in interface HttpDestinationProperties@Nonnull public Collection<Header> getHeaders(@Nonnull URI requestUri)
getHeaders in interface HttpDestinationProperties@Nonnull public static DefaultErpHttpDestination.Builder builder(@Nonnull URI uri)
DefaultErpHttpDestination with some properties.uri - The uri of the DefaultErpHttpDestination to be created.Builder instance.@Nonnull public static DefaultErpHttpDestination.Builder builder(@Nonnull String uri)
DefaultErpHttpDestination with some properties.uri - The uri of the DefaultErpHttpDestination to be created. In case this is no valid URI an
IllegalArgumentException is thrown.Builder instance.IllegalArgumentException - if the given uri is no valid URI.Copyright © 2022 SAP SE. All rights reserved.