Class DefaultDestination
java.lang.Object
com.sap.cloud.sdk.cloudplatform.connectivity.DefaultDestination
- All Implemented Interfaces:
Destination
,DestinationProperties
Immutable default implementation of the
Destination
interface to be used as the "single source of truth". All
other destination implementations provided will retrieve the properties out of this class.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class to allow for easy creation of an immutableDefaultDestination
instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultDestination.Builder
builder()
Starts a builder to be used to create aDefaultDestination
with some properties.boolean
static DefaultDestination.Builder
Creates a newDefaultDestination
with the given properties.io.vavr.control.Option<Object>
Gets the value associated with the given key (if any).Retrieves the set of property keys of the destination.int
hashCode()
Returns a newDefaultDestination.Builder
instance that is initialized with thisDefaultDestination
.toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.sap.cloud.sdk.cloudplatform.connectivity.Destination
asHttp, asRfc, isHttp, isRfc
Methods inherited from interface com.sap.cloud.sdk.cloudplatform.connectivity.DestinationProperties
get, get, get
-
Method Details
-
fromMap
Creates a newDefaultDestination
with the given properties.- Parameters:
map
- The properties to be used for the destination builder.- Returns:
- A new builder instance.
- Since:
- 5.0.0
-
get
Description copied from interface:DestinationProperties
Gets the value associated with the given key (if any).- Specified by:
get
in interfaceDestinationProperties
- Parameters:
someKey
- The key to get the value for.- Returns:
- An
Option
object containing the value, if any.
-
getPropertyNames
Description copied from interface:DestinationProperties
Retrieves the set of property keys of the destination.- Specified by:
getPropertyNames
in interfaceDestinationProperties
- Returns:
- An iterable of type String which is the set of property keys for a destination
-
toString
-
toBuilder
Returns a newDefaultDestination.Builder
instance that is initialized with thisDefaultDestination
.Please note that this operation performs a shallow copy only. As a consequence, complex objects (such as the
KeyStore
s) will be copied by reference only, which leads to a shared state between thedestination
and theDefaultHttpDestination
to be created.- Returns:
- A new
DefaultDestination.Builder
instance. - Since:
- 5.0.0
-
builder
Starts a builder to be used to create aDefaultDestination
with some properties.- Returns:
- A new
Builder
instance.
-
equals
-
hashCode
public int hashCode()
-