public abstract class AbstractDestination extends AbstractGenericDestination implements Destination
AbstractGenericDestination
implementing the Destination
interface.Modifier and Type | Field and Description |
---|---|
protected AuthenticationType |
authenticationType |
protected BasicCredentials |
basicCredentials |
protected boolean |
isTrustingAllCertificates |
protected String |
keyStoreLocation |
protected String |
keyStorePassword |
protected ProxyConfiguration |
proxyConfiguration |
protected ProxyType |
proxyType |
protected String |
trustStoreLocation |
protected String |
trustStorePassword |
protected URI |
uri |
Constructor and Description |
---|
AbstractDestination(String name,
String description,
URI uri,
AuthenticationType authenticationType,
BasicCredentials basicCredentials,
ProxyType proxyType,
ProxyConfiguration proxyConfiguration,
boolean isTrustingAllCertificates,
String trustStoreLocation,
String trustStorePassword,
String keyStoreLocation,
String keyStorePassword,
Map<String,String> propertiesByName) |
Modifier and Type | Method and Description |
---|---|
AuthenticationType |
getAuthenticationType() |
Optional<BasicCredentials> |
getBasicCredentials() |
List<Header> |
getHeaders(URI requestUri) |
Optional<String> |
getKeyStorePassword() |
Optional<ProxyConfiguration> |
getProxyConfiguration() |
ProxyType |
getProxyType() |
Optional<String> |
getTrustStorePassword() |
URI |
getUri() |
boolean |
isTrustingAllCertificates() |
canEqual, equals, getDescription, getDestinationType, getName, getPropertiesByName, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getKeyStore, getTrustStore
getDescription, getDestinationType, getName, getPropertiesByName
@Nonnull protected final AuthenticationType authenticationType
@Nullable protected final BasicCredentials basicCredentials
@Nullable protected final ProxyConfiguration proxyConfiguration
protected final boolean isTrustingAllCertificates
public AbstractDestination(@Nonnull String name, @Nullable String description, @Nonnull URI uri, @Nonnull AuthenticationType authenticationType, @Nullable BasicCredentials basicCredentials, @Nonnull ProxyType proxyType, @Nullable ProxyConfiguration proxyConfiguration, boolean isTrustingAllCertificates, @Nullable String trustStoreLocation, @Nullable String trustStorePassword, @Nullable String keyStoreLocation, @Nullable String keyStorePassword, @Nonnull Map<String,String> propertiesByName)
@Nonnull public Optional<BasicCredentials> getBasicCredentials()
@Nonnull public Optional<ProxyConfiguration> getProxyConfiguration()
getProxyConfiguration
in interface Destination
ProxyConfiguration
of the destination.@Nonnull public Optional<String> getTrustStorePassword()
getTrustStorePassword
in interface Destination
@Nonnull public Optional<String> getKeyStorePassword()
getKeyStorePassword
in interface Destination
@Nonnull public List<Header> getHeaders(@Nullable URI requestUri) throws DestinationAccessException
getHeaders
in interface Destination
requestUri
- The URI to get the associated Header for.Header
s to be used with the destination and given request URI
.DestinationAccessException
- If there is an issue accessing the request headers.@Nonnull public URI getUri()
getUri
in interface Destination
URI
of the destination.@Nonnull public AuthenticationType getAuthenticationType()
getAuthenticationType
in interface Destination
AuthenticationType
of the destination.@Nonnull public ProxyType getProxyType()
getProxyType
in interface Destination
ProxyType
of the destination.public boolean isTrustingAllCertificates()
isTrustingAllCertificates
in interface Destination
Copyright © 2018 SAP SE. All rights reserved.