Package org.gcube.common.scope.api
Interface ServiceMap
-
- All Known Implementing Classes:
DefaultServiceMap,ScopedServiceMap
public interface ServiceMapResolves service endpoints statically configured for a given scope.- Author:
- Fabio Simeoni
-
-
Field Summary
Fields Modifier and Type Field Description static ServiceMapinstanceSharedServiceMap.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Stringendpoint(String service)Returns the endpoint of a given service.Stringscope()Returns the associated scope.Stringversion()Returns the release version of the map.
-
-
-
Field Detail
-
instance
static final ServiceMap instance
SharedServiceMap.
-
-
Method Detail
-
endpoint
String endpoint(String service)
Returns the endpoint of a given service.- Parameters:
service- the service- Returns:
- the endpoint
- Throws:
IllegalArgumentException- if the service has no endpoint in the mapIllegalStateException- if the service endpoint cannot be returned
-
scope
String scope()
Returns the associated scope.- Returns:
- the scope
- Throws:
IllegalStateException- if the scope of the map cannot be returned
-
version
String version()
Returns the release version of the map.- Returns:
- the version
- Throws:
IllegalStateException- if the version of the map cannot be returned
-
-