Class AbstractODataParameters

java.lang.Object
com.sap.cloud.sdk.datamodel.odata.client.request.AbstractODataParameters
Direct Known Subclasses:
ODataEntityKey, ODataFunctionParameters

public abstract class AbstractODataParameters extends Object
Abstract class to build parameter expressions for the URL path. Parameters can resemble an entity key or function parameters.
  • Method Details

    • toEncodedString

      @Nonnull public String toEncodedString()
      Serializes all parameters into an encoded URL path segment. The format is as follows:

      • An empty set of parameters will yield ()
      • A single parameter entry will yield (value)
      • Multiple of parameters will yield (key1=val,key2=val)

      Returns:
      Encoded URL string representation of the parameters.
    • toEncodedString

      @Nonnull public String toEncodedString(@Nonnull UriEncodingStrategy strategy)
      Serializes all parameters into an encoded URL path segment. The format is as follows:

      • An empty set of parameters will yield ()
      • A single parameter entry will yield (value)
      • Multiple of parameters will yield (key1=val,key2=val)

      Parameters:
      strategy - The URI encoding strategy.
      Returns:
      Encoded URL string representation of the parameters.
    • toString

      @Nonnull public String toString()
      Serializes all parameters into an unencoded URL path segment. The format is as follows:

      • An empty set of parameters will yield ()
      • A single parameter entry will yield (value)
      • Multiple of parameters will yield (key1=val,key2=val)

      Overrides:
      toString in class Object
      Returns:
      String representation of the parameters.
    • getProtocol

      @Nonnull public ODataProtocol getProtocol()
      The ODataProtocol these parameters should conform to.