public interface HttpDestination extends HttpDestinationProperties
Additionally provides an easy way to decorate itself with a given decorator function.
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, getKeyStore, getKeyStorePassword, getProxyConfiguration, getProxyType, getTlsVersion, getTrustStore, getTrustStorePassword, getUri, isTrustingAllCertificates
get, 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 © 2020 SAP SE. All rights reserved.