Package com.sap.cds.services.utils.path
Class UrlPathUtil
java.lang.Object
com.sap.cds.services.utils.path.UrlPathUtil
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcdsEvent2HttpMethod(String cdsEvent) Maps a CDS event such as "READ" or "CREATE" to corresponding HTTP methods"GET" resp.static StringnormalizeBasePath(String basePath) Normalizes a base path of a servlet-based adapter
-
Constructor Details
-
UrlPathUtil
public UrlPathUtil()
-
-
Method Details
-
cdsEvent2HttpMethod
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
nullif no matching HTTP event available.
-
normalizeBasePath
Normalizes a base path of a servlet-based adapter- Parameters:
basePath- the configured base path- Returns:
- the normalized base path
-