public class CdsServicePath extends Object
CdsResourcePath
s which are exposed by the ApplicationService
s of a ServiceCatalog
Constructor and Description |
---|
CdsServicePath() |
Modifier and Type | Method and Description |
---|---|
static Map<String,ApplicationService> |
basePaths(ServiceCatalog serviceCatalog,
String protocol)
Creates a map of the base paths of each exposed service to their respective
ApplicationService instance. |
static Stream<CdsResourcePath> |
servicePaths(ServiceCatalog serviceCatalog,
String protocol)
Creates a
Stream of CdsResourcePath instances containing the paths of all exposed ApplicationService s given in the ServiceCatalog and configuration. |
public static Stream<CdsResourcePath> servicePaths(ServiceCatalog serviceCatalog, String protocol)
Stream
of CdsResourcePath
instances containing the paths of all exposed ApplicationService
s given in the ServiceCatalog
and 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.serviceCatalog
- The service catalog, containing all ApplicationService
sprotocol
- The protocol adapter for which these paths should be determinedStream
of all CdsResourcePath
instances of the given protocol adapterpublic static Map<String,ApplicationService> basePaths(ServiceCatalog serviceCatalog, String protocol)
ApplicationService
instance.
The base paths are calculated for the given protocol adapter.serviceCatalog
- The service catalog, containing all ApplicationService
sprotocol
- The protocol adapter for which these paths should be determinedApplicationService
Copyright © 2021. All rights reserved.