Class UrlPathUtil

java.lang.Object
com.sap.cds.services.utils.path.UrlPathUtil

public class UrlPathUtil extends Object
  • Constructor Details

    • UrlPathUtil

      public UrlPathUtil()
  • Method Details

    • cdsEvent2HttpMethod

      public static String cdsEvent2HttpMethod(String cdsEvent)
      Maps a CDS event such as "READ" or "CREATE" to corresponding HTTP methods"GET" resp. "POST". The mapping is inspired by OData protocol handling. The matching is case-sensitive.
      Parameters:
      cdsEvent - The CDS event
      Returns:
      The HTTP event or null if no matching HTTP event available.
    • normalizeBasePath

      public static String normalizeBasePath(String basePath)
      Normalizes a base path of a servlet-based adapter
      Parameters:
      basePath - the configured base path
      Returns:
      the normalized base path