Interface Destination
- All Superinterfaces:
DestinationProperties
- All Known Subinterfaces:
HttpDestination
,HttpDestinationProperties
,RfcDestination
- All Known Implementing Classes:
DefaultDestination
,DefaultHttpDestination
,DefaultRfcDestination
Platform independent representation of a destination as a collection of key-value pairs, can be converted to a
HttpDestination
or a RfcDestination
.-
Method Summary
Modifier and TypeMethodDescriptiondefault HttpDestination
asHttp()
Converts this object as aHttpDestination
,default RfcDestination
asRfc()
Deprecated.default boolean
isHttp()
Verifies that this object can be converted to aHttpDestination
.default boolean
isRfc()
Deprecated.Methods inherited from interface com.sap.cloud.sdk.cloudplatform.connectivity.DestinationProperties
get, get, get, get, getPropertyNames
-
Method Details
-
asHttp
Converts this object as aHttpDestination
,- Returns:
- The converted destination.
- Throws:
IllegalArgumentException
- if this object cannot be converted as aHttpDestination
.
-
isHttp
default boolean isHttp()Verifies that this object can be converted to aHttpDestination
.- Returns:
true
, if a call toasHttp()
will succeed;false
otherwise.
-
asRfc
Deprecated.Please use theDestination
as is by removing theasRfc()
conversion.Converts this object as aRfcDestination
,- Returns:
- The converted destination.
- Throws:
IllegalArgumentException
- if this object cannot be converted as aRfcDestination
.
-
isRfc
Deprecated.Verifies that this object can be converted to aRfcDestination
.- Returns:
true
, if a call toasRfc()
will succeed;false
otherwise.
-
Destination
as is by removing theasRfc()
conversion.