public static final class ScpCfHttpDestination.Builder extends Object
ScpCfHttpDestination
instance.Modifier and Type | Method and Description |
---|---|
ScpCfHttpDestination.Builder |
authenticationType(AuthenticationType value)
Sets the authentication type of the destination.
|
ScpCfHttpDestination.Builder |
basicCredentials(BasicCredentials value)
Sets the credentials for accessing the destination when basic authentication is used.
|
ScpCfHttpDestination |
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. |
ScpCfHttpDestination.Builder |
cloudConnectorLocationId(String locationId)
Sets the connectivity location id of the destination.
|
protected ScpCfHttpDestination.Builder |
getThis() |
ScpCfHttpDestination.Builder |
header(Header header)
Adds the given header to the list of headers added to every outgoing request for this destination.
|
ScpCfHttpDestination.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. |
ScpCfHttpDestination.Builder |
keyStore(KeyStore value)
Sets the
KeyStore used by the destination to the given value. |
ScpCfHttpDestination.Builder |
keyStorePassword(String value)
Sets the password of the key store.
|
BuilderT |
name(String name)
Sets a name for the destination.
|
ScpCfHttpDestination.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.
|
ScpCfHttpDestination.Builder |
proxyConfiguration(ProxyConfiguration value)
Sets the proxy used by the destination to the given value.
|
ScpCfHttpDestination.Builder |
proxyType(ProxyType value)
Sets the proxy type (Internet or On-Premise).
|
ScpCfHttpDestination.Builder |
tlsVersion(String value)
Sets the TLS version used by the destination to the given value.
|
String |
toString() |
ScpCfHttpDestination.Builder |
trustAllCertificates()
Lets the destination trust all server certificates.
|
ScpCfHttpDestination.Builder |
trustStore(KeyStore value)
Sets the trust store used by the destination to the given value.
|
ScpCfHttpDestination.Builder |
trustStorePassword(String value)
Sets the password of the trust store.
|
BuilderT |
type(DestinationType type)
Sets the type for the destination.
|
ScpCfHttpDestination.Builder |
uri(URI uri)
Deprecated.
The URI is already passed as a parameter to create the builder instance, hence deprecating this
method.
|
ScpCfHttpDestination.Builder |
user(String user)
Sets the user name for accessing the destination when basic authentication is used.
|
@Deprecated @Nonnull public ScpCfHttpDestination.Builder uri(@Nonnull URI uri)
uri
- A URI for this destination.@Nonnull public ScpCfHttpDestination.Builder authenticationType(@Nonnull AuthenticationType value)
value
- Enum value from AuthenticationType
representing the authentication type.@Nonnull public ScpCfHttpDestination.Builder user(@Nonnull String user)
user
- The user name used for accessing the destination@Nonnull public ScpCfHttpDestination.Builder password(@Nonnull String password)
password
- The password for accessing the destination@Nonnull public ScpCfHttpDestination.Builder basicCredentials(@Nonnull BasicCredentials value)
value
- Username and password represented as a BasicCredentials
object.@Nonnull public ScpCfHttpDestination.Builder tlsVersion(@Nonnull String value)
value
- The TLS version that should be used.@Nonnull public ScpCfHttpDestination.Builder proxyType(@Nonnull ProxyType value)
value
- Type of proxy this destination is configured for.@Nonnull public ScpCfHttpDestination.Builder proxyConfiguration(@Nonnull ProxyConfiguration value)
value
- The proxy that should be used.@Nonnull public ScpCfHttpDestination.Builder keyStore(@Nonnull KeyStore value)
KeyStore
used by the destination to the given value.value
- The key store that should be used.@Nonnull public ScpCfHttpDestination.Builder keyStorePassword(@Nonnull String value)
value
- The key store password that should be used.@Nonnull public ScpCfHttpDestination.Builder trustAllCertificates()
@Nonnull public ScpCfHttpDestination.Builder trustStore(@Nonnull KeyStore value)
value
- The trust store that should be used.@Nonnull public ScpCfHttpDestination.Builder trustStorePassword(@Nonnull String value)
value
- The trust store password that should be used.@Nonnull public ScpCfHttpDestination.Builder cloudConnectorLocationId(@Nonnull String locationId)
locationId
- The location identifier for connecting to SAP Cloud Connector.@Nonnull public ScpCfHttpDestination.Builder header(@Nonnull Header header)
header
- A header to add to outgoing requests.@Nonnull public ScpCfHttpDestination.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 ScpCfHttpDestination.Builder getThis()
@Nonnull public ScpCfHttpDestination 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.