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_KEY
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)
Gets the value associated with the given key (if any).
|
AuthenticationType |
getAuthenticationType()
Returns the authentication type to be expected when authenticating at the remote system.
|
io.vavr.control.Option<BasicCredentials> |
getBasicCredentials()
Returns the basic credentials to be used for authentication at the remote system.
|
Collection<Header> |
getHeaders(URI requestUri)
Getter for a collection of header that should be added to the outgoing request for this destination.
|
io.vavr.control.Option<KeyStore> |
getKeyStore()
The KeyStore to be used when communicating over HTTP.
|
io.vavr.control.Option<String> |
getKeyStorePassword()
The password for the Key Store to be used when communicating over HTTP.
|
io.vavr.control.Option<String> |
getName()
Get the destination name.
|
Iterable<String> |
getPropertyNames()
Retrieves the set of property keys of the destination.
|
io.vavr.control.Option<ProxyConfiguration> |
getProxyConfiguration()
The
ProxyConfiguration to be used when communicating over HTTP. |
io.vavr.control.Option<ProxyType> |
getProxyType()
Returns the
ProxyType that is configured for this destination. |
io.vavr.control.Option<String> |
getTlsVersion()
The TLS version to be used when communicating over HTTP.
|
io.vavr.control.Option<KeyStore> |
getTrustStore() |
io.vavr.control.Option<String> |
getTrustStorePassword() |
URI |
getUri()
Getter for the
URI to communicate with. |
int |
hashCode() |
boolean |
isTrustingAllCertificates()
Indicates whether all server certificates should be accepted when communicating over HTTP.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getLocale, getSapClient
decorate
get, get, get
public 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)
DestinationProperties
get
in interface DestinationProperties
key
- The key to get the value for.Option
object containing the value, if any.@Nonnull public Iterable<String> getPropertyNames()
DestinationProperties
getPropertyNames
in interface DestinationProperties
@Nonnull public URI getUri()
HttpDestinationProperties
URI
to communicate with.
This is a mandatory property of a HttpDestination.
getUri
in interface HttpDestinationProperties
URI
to be used with this destination.@Nonnull public io.vavr.control.Option<String> getTlsVersion()
HttpDestinationProperties
getTlsVersion
in interface HttpDestinationProperties
Option
wrapping the TLS version to use, if any.@Nonnull public io.vavr.control.Option<ProxyConfiguration> getProxyConfiguration()
HttpDestinationProperties
ProxyConfiguration
to be used when communicating over HTTP.getProxyConfiguration
in interface HttpDestinationProperties
Option
wrapping the ProxyConfiguration
to use, if any.@Nonnull public io.vavr.control.Option<KeyStore> getKeyStore()
HttpDestinationProperties
getKeyStore
in interface HttpDestinationProperties
Option
wrapping the KeyStore to use, if any.@Nonnull public io.vavr.control.Option<String> getKeyStorePassword()
HttpDestinationProperties
getKeyStorePassword
in interface HttpDestinationProperties
Option
wrapping the password to use, if any.public boolean isTrustingAllCertificates()
HttpDestinationProperties
isTrustingAllCertificates
in interface HttpDestinationProperties
true
if all certificates should be accepted, false
otherwise.@Nonnull public io.vavr.control.Option<BasicCredentials> getBasicCredentials()
HttpDestinationProperties
getBasicCredentials
in interface HttpDestinationProperties
Option
wrapping the BasicCredentials
to use, if any.@Nonnull public io.vavr.control.Option<ProxyType> getProxyType()
HttpDestinationProperties
ProxyType
that is configured for this destination.getProxyType
in interface HttpDestinationProperties
Option
wrapping the ProxyType
to use, if any.@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()
HttpDestinationProperties
getAuthenticationType
in interface HttpDestinationProperties
@Nonnull public Collection<Header> getHeaders(@Nonnull URI requestUri)
HttpDestinationProperties
getHeaders
in interface HttpDestinationProperties
requestUri
- The target URI of a request to which HTTP headers should be added.@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 © 2020 SAP SE. All rights reserved.