Class DefaultRfcDestination

java.lang.Object
com.sap.cloud.sdk.cloudplatform.connectivity.DefaultRfcDestination
All Implemented Interfaces:
Destination, DestinationProperties, RfcDestination, RfcDestinationProperties

@Deprecated public final class DefaultRfcDestination extends Object implements RfcDestination
Deprecated.
Please use DefaultDestination instead.
Immutable default implementation of the RfcDestination interface.
  • Method Details

    • fromProperties

      @Nonnull public static RfcDestination fromProperties(@Nonnull DestinationProperties properties)
      Deprecated.
      Creates an immutable destination with the given properties.
      Parameters:
      properties - The properties of this destination.
      Returns:
      An immutable destination with the given properties.
    • equals

      public boolean equals(@Nullable Object o)
      Deprecated.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Deprecated.
      Overrides:
      hashCode in class Object
    • get

      public io.vavr.control.Option<Object> get(String key)
      Deprecated.
      Description copied from interface: DestinationProperties
      Gets the value associated with the given key (if any).
      Specified by:
      get in interface DestinationProperties
      Parameters:
      key - The key to get the value for.
      Returns:
      An Option object containing the value, if any.
    • getPropertyNames

      public Iterable<String> getPropertyNames()
      Deprecated.
      Description copied from interface: DestinationProperties
      Retrieves the set of property keys of the destination.
      Specified by:
      getPropertyNames in interface DestinationProperties
      Returns:
      An iterable of type String which is the set of property keys for a destination
    • get

      public <ValueT> io.vavr.control.Option<ValueT> get(String key, Class<ValueT> expectedType)
      Deprecated.
      Description copied from interface: DestinationProperties
      Convenience method to cast the Object return type of DestinationProperties.get(String) into the expected type.
      Specified by:
      get in interface DestinationProperties
      Type Parameters:
      ValueT - The expected type of the value.
      Parameters:
      key - The key to get the value for.
      expectedType - The expected type to cast the value to.
      Returns:
      An Option object containing the converted value, if any.
    • get

      public <ValueT> io.vavr.control.Option<ValueT> get(String key, Function<Object,ValueT> conversion)
      Deprecated.
      Description copied from interface: DestinationProperties
      Convenience method to convert the Object return type of DestinationProperties.get(String) into any expected type.
      Specified by:
      get in interface DestinationProperties
      Type Parameters:
      ValueT - The expected type of the value.
      Parameters:
      key - The key to get the value for.
      conversion - A function converting the object given by DestinationProperties.get(String) into the expected type. Will never be called if no value (or null) is present for the given key.
      Returns:
      An Option object containing the converted value, if any.
    • get

      public <ValueT> io.vavr.control.Option<ValueT> get(DestinationPropertyKey<ValueT> propertyKey)
      Deprecated.
      Description copied from interface: DestinationProperties
      Convenience method to convert the Object return type of DestinationProperties.get(String) into any expected type.
      Specified by:
      get in interface DestinationProperties
      Type Parameters:
      ValueT - The expected type of the value.
      Parameters:
      propertyKey - The DestinationPropertyKey for the value to retrieve.
      Returns:
      An Option object containing the converted value, if any.