Interface Destination
- All Superinterfaces:
DestinationProperties
- All Known Subinterfaces:
HttpDestination,HttpDestinationProperties,RfcDestination
- All Known Implementing Classes:
DefaultDestination,DefaultHttpDestination,DefaultRfcDestination,TransparentProxyDestination
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 HttpDestinationasHttp()Converts this object as aHttpDestination,default RfcDestinationasRfc()Deprecated.default booleanisHttp()Verifies that this object can be converted to aHttpDestination.default booleanisRfc()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;falseotherwise.
-
asRfc
Deprecated.Please use theDestinationas 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;falseotherwise.
-
Destinationas is by removing theasRfc()conversion.