Class ContextURLHelper

java.lang.Object
org.apache.olingo.server.core.serializer.utils.ContextURLHelper

public final class ContextURLHelper extends Object
  • Method Details

    • buildSelectList

      public static String buildSelectList(EdmStructuredType type, ExpandOption expand, SelectOption select) throws SerializerException
      Builds a list of selected Properties for the ContextURL, taking care to preserve the order as defined in the EDM; returns NULL if no selection has taken place.
      Parameters:
      type - the structured type
      expand - the Expand option (from the URL's $expand query option)
      select - the Select option (from the URL's $select query option)
      Returns:
      a select-list String
      Throws:
      SerializerException - if an unsupported feature is used
    • buildKeyPredicate

      public static String buildKeyPredicate(List<UriParameter> keys) throws SerializerException
      Builds a key predicate for the ContextURL.
      Parameters:
      keys - the keys as a list of UriParameter instances
      Returns:
      a String with the key predicate
      Throws:
      SerializerException