Interface Destination

All Superinterfaces:
DestinationProperties
All Known Subinterfaces:
HttpDestination, HttpDestinationProperties, RfcDestination
All Known Implementing Classes:
DefaultDestination, DefaultHttpDestination, DefaultRfcDestination

public interface Destination extends DestinationProperties
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 Type
    Method
    Description
    Converts this object as a HttpDestination,
    Deprecated.
    Please use the Destination as is by removing the asRfc() conversion.
    default boolean
    Verifies that this object can be converted to a HttpDestination.
    default boolean
    Deprecated.

    Methods inherited from interface com.sap.cloud.sdk.cloudplatform.connectivity.DestinationProperties

    get, get, get, get, getPropertyNames
  • Method Details

    • asHttp

      @Nonnull default HttpDestination asHttp() throws IllegalArgumentException
      Converts this object as a HttpDestination,
      Returns:
      The converted destination.
      Throws:
      IllegalArgumentException - if this object cannot be converted as a HttpDestination.
    • isHttp

      default boolean isHttp()
      Verifies that this object can be converted to a HttpDestination.
      Returns:
      true, if a call to asHttp() will succeed; false otherwise.
    • asRfc

      @Deprecated @Nonnull default RfcDestination asRfc() throws IllegalArgumentException
      Deprecated.
      Please use the Destination as is by removing the asRfc() conversion.
      Converts this object as a RfcDestination,
      Returns:
      The converted destination.
      Throws:
      IllegalArgumentException - if this object cannot be converted as a RfcDestination.
    • isRfc

      @Deprecated default boolean isRfc()
      Deprecated.
      Verifies that this object can be converted to a RfcDestination.
      Returns:
      true, if a call to asRfc() will succeed; false otherwise.