public interface HttpDestination extends HttpDestinationProperties
Additionally provides an easy way to decorate itself with a given decorator function.
HEADER_PROPERTY, log| Modifier and Type | Method and Description |
|---|---|
default <TargetT extends HttpDestinationProperties> |
decorate(Function<HttpDestinationProperties,TargetT> decorator)
Provides an convenient way to decorate this destination with a custom class.
|
getAuthenticationType, getBasicCredentials, getHeaders, getHeadersFromProperties, getKeyStore, getKeyStorePassword, getProxyConfiguration, getProxyType, getSecurityConfigurationStrategy, getTlsVersion, getTrustStore, getTrustStorePassword, getUri, isTrustingAllCertificatesget, get, get, get, getPropertyNames@Nonnull default <TargetT extends HttpDestinationProperties> TargetT decorate(@Nonnull Function<HttpDestinationProperties,TargetT> decorator)
Example usage:
{
CustomDestination customDestination = destination.decorate(CustomDestination::new);
}
TargetT - The type of the decorated destination.decorator - The decorator function to apply. Should not return null.IllegalArgumentException - if the provided decorator returns null.Copyright © 2021 SAP SE. All rights reserved.