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 |
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 |
keyStorePassword(String value)
Sets the password
KeyStore used by the DefaultErpHttpDestination to the given value. |
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)
Sets the network (i.e.
|
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 |
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)
Sets the proxy host and proxy port of the
DefaultErpHttpDestination . |
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 the given value.value
- The keyStore password that should be used.@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@Nonnull public DefaultErpHttpDestination.Builder uri(@Nonnull URI uri)
DefaultErpHttpDestination
.uri
- The URI of the destination@Nonnull public DefaultErpHttpDestination.Builder network(@Nonnull ProxyType proxyType)
DefaultHttpDestination
.proxyType
- The network (i.e. "proxy type")@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 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 © 2019 SAP SE. All rights reserved.