public static class DefaultErpHttpDestination.Builder extends Object
DefaultErpHttpDestination
instance.Modifier and Type | Method and Description |
---|---|
DefaultErpHttpDestination.Builder |
authenticationType(AuthenticationType authenticationType)
Sets the enum value for
AuthenticationType . |
DefaultErpHttpDestination.Builder |
basicCredentials(BasicCredentials basicCredentials)
Sets the credentials for accessing the destination when basic authentication is used.
|
DefaultErpHttpDestination |
build()
Finally creates the
DefaultErpHttpDestination with the properties retrieved via the
property(String, Object) method. |
DefaultErpHttpDestination.Builder |
header(Header header)
Adds the given header to the list of headers added to every outgoing request for this destination.
|
DefaultErpHttpDestination.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. |
DefaultErpHttpDestination.Builder |
keyStore(KeyStore keyStore)
Sets the
KeyStore to be used when communicating over HTTP. |
DefaultErpHttpDestination.Builder |
keyStorePassword(String value)
Sets the key store password for the corresponding
KeyStore used by the
DefaultErpHttpDestination to access the key store. |
DefaultErpHttpDestination.Builder |
locale(Locale locale)
Sets the locale to be used by the destination currently build.
|
DefaultErpHttpDestination.Builder |
name(String name)
Sets the name of the
DefaultErpHttpDestination . |
DefaultErpHttpDestination.Builder |
network(ProxyType proxyType)
Deprecated.
Use {
proxyType(ProxyType) } instead. |
DefaultErpHttpDestination.Builder |
password(String password)
Sets the password of the
DefaultErpHttpDestination . |
DefaultErpHttpDestination.Builder |
property(String key,
Object value)
Adds the given key-value pair to the destination to be created.
|
DefaultErpHttpDestination.Builder |
proxy(String proxyHost,
int proxyPort)
Sets the proxy host and proxy port of the
DefaultErpHttpDestination . |
DefaultErpHttpDestination.Builder |
proxy(URI proxyUri)
Sets the proxy URI of the
DefaultErpHttpDestination . |
DefaultErpHttpDestination.Builder |
proxyType(ProxyType proxyType)
Sets the proxy type (Internet or On-Premise).
|
DefaultErpHttpDestination.Builder |
sapClient(SapClient sapClient)
Sets the sap client to be used by the destination currently build.
|
DefaultErpHttpDestination.Builder |
tlsVersion(String value)
Sets the TLS version used by the
DefaultErpHttpDestination to the given value. |
DefaultErpHttpDestination.Builder |
trustAllCertificates()
Lets the
DefaultErpHttpDestination trust all server certificates. |
DefaultErpHttpDestination.Builder |
uri(URI uri)
Deprecated.
The URI is already passed as a parameter to create the builder instance, hence deprecating this
method.
|
DefaultErpHttpDestination.Builder |
user(String user)
Sets the user name of the
DefaultErpHttpDestination . |
@Nonnull public DefaultErpHttpDestination.Builder sapClient(@Nonnull SapClient sapClient)
sapClient
- The sap client to use.@Nonnull public DefaultErpHttpDestination.Builder locale(@Nonnull Locale locale)
locale
- The locale to use.@Nonnull public DefaultErpHttpDestination.Builder tlsVersion(@Nonnull String value)
DefaultErpHttpDestination
to the given value.value
- The TLS version that should be used.@Nonnull public DefaultErpHttpDestination.Builder property(@Nonnull String key, @Nonnull Object value)
key
- The key to assign a property for.value
- The property value to be assigned.@Nonnull public DefaultErpHttpDestination.Builder keyStorePassword(@Nonnull String value)
KeyStore
used by the
DefaultErpHttpDestination
to access the key store.value
- The keyStore password that should be used.@Nonnull public DefaultErpHttpDestination.Builder keyStore(@Nonnull KeyStore keyStore)
KeyStore
to be used when communicating over HTTP.keyStore
- The keyStore that should be used. for HTTP communication@Nonnull public DefaultErpHttpDestination.Builder trustAllCertificates()
DefaultErpHttpDestination
trust all server certificates.@Nonnull public DefaultErpHttpDestination.Builder name(@Nonnull String name)
DefaultErpHttpDestination
.name
- The destination name@Nonnull public DefaultErpHttpDestination.Builder proxy(@Nonnull URI proxyUri)
DefaultErpHttpDestination
.proxyUri
- The URI of the proxy@Nonnull public DefaultErpHttpDestination.Builder proxy(@Nonnull String proxyHost, int proxyPort)
DefaultErpHttpDestination
.proxyHost
- The host of the proxyproxyPort
- The port of the proxy@Deprecated @Nonnull public DefaultErpHttpDestination.Builder uri(@Nonnull URI uri)
DefaultErpHttpDestination
.uri
- The URI of the destination@Deprecated @Nonnull public DefaultErpHttpDestination.Builder network(@Nonnull ProxyType proxyType)
proxyType(ProxyType)
} instead.DefaultHttpDestination
.proxyType
- The network (i.e. "proxy type")@Nonnull public DefaultErpHttpDestination.Builder proxyType(@Nonnull ProxyType proxyType)
proxyType
- Type of proxy this destination is configured for.@Nonnull public DefaultErpHttpDestination.Builder authenticationType(@Nonnull AuthenticationType authenticationType)
AuthenticationType
.authenticationType
- The authentication type used for the destination@Nonnull public DefaultErpHttpDestination.Builder user(@Nonnull String user)
DefaultErpHttpDestination
.user
- The user name of the destination@Nonnull public DefaultErpHttpDestination.Builder password(@Nonnull String password)
DefaultErpHttpDestination
.password
- The password of the destination@Nonnull public DefaultErpHttpDestination.Builder basicCredentials(@Nonnull BasicCredentials basicCredentials)
basicCredentials
- Username and password represented as a BasicCredentials
object.@Nonnull public DefaultErpHttpDestination.Builder header(@Nonnull Header header)
header
- A header to add to outgoing requests.@Nonnull public DefaultErpHttpDestination.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 public DefaultErpHttpDestination build()
DefaultErpHttpDestination
with the properties retrieved via the
property(String, Object)
method.DefaultErpHttpDestination
.Copyright © 2021 SAP SE. All rights reserved.