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
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder class to allow for easy creation of an immutableDefaultDestinationinstance. -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultDestination.Builderbuilder()Starts a builder to be used to create aDefaultDestinationwith some properties.booleanstatic DefaultDestination.BuilderCreates a newDefaultDestinationwith 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.inthashCode()Returns a newDefaultDestination.Builderinstance that is initialized with thisDefaultDestination.toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sap.cloud.sdk.cloudplatform.connectivity.Destination
asHttp, asRfc, isHttp, isRfcMethods inherited from interface com.sap.cloud.sdk.cloudplatform.connectivity.DestinationProperties
get, get, get
-
Method Details
-
fromMap
Creates a newDefaultDestinationwith 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:DestinationPropertiesGets the value associated with the given key (if any).- Specified by:
getin interfaceDestinationProperties- Parameters:
someKey- The key to get the value for.- Returns:
- An
Optionobject containing the value, if any.
-
getPropertyNames
Description copied from interface:DestinationPropertiesRetrieves the set of property keys of the destination.- Specified by:
getPropertyNamesin interfaceDestinationProperties- Returns:
- An iterable of type String which is the set of property keys for a destination
-
toString
-
toBuilder
Returns a newDefaultDestination.Builderinstance that is initialized with thisDefaultDestination.Please note that this operation performs a shallow copy only. As a consequence, complex objects (such as the
KeyStores) will be copied by reference only, which leads to a shared state between thedestinationand theDefaultHttpDestinationto be created.- Returns:
- A new
DefaultDestination.Builderinstance. - Since:
- 5.0.0
-
builder
Starts a builder to be used to create aDefaultDestinationwith some properties.- Returns:
- A new
Builderinstance.
-
equals
-
hashCode
public int hashCode()
-