Package com.sap.cds.services.utils.path
Class CdsServicePath
java.lang.Object
com.sap.cds.services.utils.path.CdsServicePath
Provides a stream of
CdsResourcePaths which are exposed by the ApplicationServices of a ServiceCatalog-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Map<String,ApplicationService> basePaths(CdsRuntime runtime, String protocol) Creates a map of the base paths of each exposed service to their respectiveApplicationServiceinstance.static Stream<CdsResourcePath>servicePaths(CdsRuntime runtime, String protocol) Creates aStreamofCdsResourcePathinstances containing the paths of all exposedApplicationServices given in theServiceCatalogand configuration.
-
Constructor Details
-
CdsServicePath
public CdsServicePath()
-
-
Method Details
-
servicePaths
Creates aStreamofCdsResourcePathinstances containing the paths of all exposedApplicationServices given in theServiceCatalogand configuration. Path in the configuration or annotations in the CDS service model are regarded with priority and override default paths reflecting the full qualified name of the service.- Parameters:
runtime- TheCdsRuntime, containing theServiceCatalogwith allApplicationServicesprotocol- The protocol adapter for which these paths should be determined- Returns:
- A
Streamof allCdsResourcePathinstances of the given protocol adapter
-
basePaths
Creates a map of the base paths of each exposed service to their respectiveApplicationServiceinstance. The base paths are calculated for the given protocol adapter.- Parameters:
runtime- TheCdsRuntime, containing theServiceCatalogwith allApplicationServicesprotocol- The protocol adapter for which these paths should be determined- Returns:
- A map of base paths to their
ApplicationService
-