public static final class ScpNeoHttpDestination.Builder extends Object
ScpNeoHttpDestination
instance.Modifier and Type | Method and Description |
---|---|
ScpNeoHttpDestination.Builder |
authenticationHeaders(List<Header> authenticationHeaders)
Adds the authentication headers to every outgoing request to this destination
|
ScpNeoHttpDestination.Builder |
authenticationType(AuthenticationType authenticationType)
Sets the authentication type of the destination
|
ScpNeoHttpDestination.Builder |
basicCredentials(BasicCredentials value)
Sets the credentials for accessing the destination when basic authentication is used.
|
ScpNeoHttpDestination |
build()
Finally creates the
ScpCfHttpDestination based on the builder methods called and properties
previously set. |
protected DefaultDestination |
buildDefaultDestination()
Finally creates a
DefaultDestination with the properties retrieved via #the
property(String, Object) method. |
ScpNeoHttpDestination.Builder |
cloudConnectorLocationId(String locationId)
Sets the connectivity location id of the destination.
|
protected ScpNeoHttpDestination.Builder |
getThis()
Returns a reference to the builder
|
ScpNeoHttpDestination.Builder |
header(Header header)
Adds the given header to the list of headers added to every outgoing request for this destination.
|
ScpNeoHttpDestination.Builder |
header(String headerName,
String headerValue)
Adds a header given by the
headerName and headerValue to the list of headers added to every
outgoing request for this destination. |
ScpNeoHttpDestination.Builder |
keyStore(KeyStore keyStore)
Sets the key store of the destination.
|
ScpNeoHttpDestination.Builder |
keyStorePassword(String password)
Sets the key store password of the destination.
|
BuilderT |
name(String name)
Sets a name for the destination.
|
ScpNeoHttpDestination.Builder |
password(String password)
Sets the password for accessing the destination when basic authentication is used.
|
BuilderT |
property(String key,
Object value)
Adds the given key-value pair to the destination to be created.
|
ScpNeoHttpDestination.Builder |
proxyConfiguration(ProxyConfiguration proxyConfiguration)
Sets the proxy configuration used by the destination
|
ScpNeoHttpDestination.Builder |
proxyType(ProxyType proxyType)
Sets the proxy type (Internet or On-Premise)
|
String |
toString() |
ScpNeoHttpDestination.Builder |
trustAllCertificates()
Lets the destination trust all server certificates.
|
ScpNeoHttpDestination.Builder |
trustStore(KeyStore trustStore)
Sets the trust store of the destination.
|
ScpNeoHttpDestination.Builder |
trustStorePassword(String password)
Sets the trust store password of the destination.
|
BuilderT |
type(DestinationType type)
Sets the type for the destination.
|
ScpNeoHttpDestination.Builder |
user(String user)
Sets the user name for accessing the destination when basic authentication is used.
|
@Nonnull public ScpNeoHttpDestination.Builder keyStore(@Nonnull KeyStore keyStore)
keyStore
- A key store for this destination.@Nonnull public ScpNeoHttpDestination.Builder keyStorePassword(@Nonnull String password)
password
- A key store password for this destination.@Nonnull public ScpNeoHttpDestination.Builder trustStore(@Nonnull KeyStore trustStore)
trustStore
- A trust store for this destination.@Nonnull public ScpNeoHttpDestination.Builder trustStorePassword(@Nonnull String password)
password
- A trust store password for this destination.@Nonnull public ScpNeoHttpDestination.Builder cloudConnectorLocationId(@Nonnull String locationId)
locationId
- The location identifier for connecting to SAP Cloud Connector.@Nonnull public ScpNeoHttpDestination.Builder user(@Nonnull String user)
user
- The user name used for accessing the destination@Nonnull public ScpNeoHttpDestination.Builder password(@Nonnull String password)
password
- The password for accessing the destination@Nonnull public ScpNeoHttpDestination.Builder basicCredentials(@Nonnull BasicCredentials value)
value
- Username and password represented as a BasicCredentials
object.@Nonnull public ScpNeoHttpDestination.Builder authenticationHeaders(@Nonnull List<Header> authenticationHeaders)
authenticationHeaders
- The authentication headers added to outgoing requests.@Nonnull public ScpNeoHttpDestination.Builder authenticationType(@Nonnull AuthenticationType authenticationType)
authenticationType
- Enum value from AuthenticationType
representing the authentication type@Nonnull public ScpNeoHttpDestination.Builder proxyType(@Nonnull ProxyType proxyType)
proxyType
- Enum value from ProxyType
representing the proxy type@Nonnull public ScpNeoHttpDestination.Builder proxyConfiguration(@Nonnull ProxyConfiguration proxyConfiguration)
proxyConfiguration
- The proxy that should be used.@Nonnull public ScpNeoHttpDestination.Builder trustAllCertificates()
@Nonnull public ScpNeoHttpDestination.Builder header(@Nonnull Header header)
header
- A header to add to outgoing requests.@Nonnull public ScpNeoHttpDestination.Builder header(@Nonnull String headerName, @Nonnull String headerValue)
headerName
and headerValue
to the list of headers added to every
outgoing request for this destination.headerName
- The name of the header to add.headerValue
- The value of the header to add.@Nonnull protected ScpNeoHttpDestination.Builder getThis()
@Nonnull public ScpNeoHttpDestination build()
ScpCfHttpDestination
based on the builder methods called and properties
previously set.ScpCfHttpDestination
.@Nonnull public BuilderT name(@Nonnull String name)
name
- A name for the destination.@Nonnull public BuilderT type(@Nonnull DestinationType type)
type
- A recognized type for the destination.@Nonnull public BuilderT property(@Nonnull String key, @Nonnull Object value)
key
- The key to assign a property for.value
- The property value to be assigned.@Nonnull protected final DefaultDestination buildDefaultDestination()
DefaultDestination
with the properties retrieved via #the
property(String, Object)
method.DefaultDestination
.Copyright © 2020 SAP SE. All rights reserved.