public abstract class GeoServiceController<T extends org.gcube.spatial.data.sdi.model.service.GeoServiceDescriptor> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.gcube.common.resources.gcore.ServiceEndpoint.AccessPoint |
accessPoint |
protected org.gcube.spatial.data.sdi.model.credentials.Credentials |
adminAccount |
protected String |
baseURL |
protected CachedObject<T> |
cachedDescriptor |
protected Map<String,org.gcube.common.resources.gcore.ServiceEndpoint.Property> |
propertyMap |
protected org.gcube.common.resources.gcore.ServiceEndpoint |
serviceEndpoint |
protected org.gcube.spatial.data.sdi.model.service.Version |
version |
| Constructor and Description |
|---|
GeoServiceController(org.gcube.common.resources.gcore.ServiceEndpoint serviceEndpoint) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure() |
T |
getDescriptor() |
protected abstract T |
getLiveDescriptor() |
protected String |
getSEProperty(String property,
boolean mandatory) |
org.gcube.common.resources.gcore.ServiceEndpoint |
getServiceEndpoint() |
protected abstract org.gcube.common.resources.gcore.ServiceEndpoint.AccessPoint |
getTheRightAccessPoint(org.gcube.common.resources.gcore.ServiceEndpoint endpoint) |
protected abstract void |
initServiceEndpoint() |
void |
onUpdateServiceEndpoint() |
protected void |
setServiceEndpoint(org.gcube.common.resources.gcore.ServiceEndpoint toSet) |
protected org.gcube.common.resources.gcore.ServiceEndpoint serviceEndpoint
protected org.gcube.common.resources.gcore.ServiceEndpoint.AccessPoint accessPoint
protected Map<String,org.gcube.common.resources.gcore.ServiceEndpoint.Property> propertyMap
protected String baseURL
protected org.gcube.spatial.data.sdi.model.credentials.Credentials adminAccount
protected org.gcube.spatial.data.sdi.model.service.Version version
protected CachedObject<T extends org.gcube.spatial.data.sdi.model.service.GeoServiceDescriptor> cachedDescriptor
public GeoServiceController(org.gcube.common.resources.gcore.ServiceEndpoint serviceEndpoint)
throws InvalidServiceEndpointException
InvalidServiceEndpointExceptionpublic T getDescriptor()
protected abstract T getLiveDescriptor()
protected abstract org.gcube.common.resources.gcore.ServiceEndpoint.AccessPoint getTheRightAccessPoint(org.gcube.common.resources.gcore.ServiceEndpoint endpoint)
public void onUpdateServiceEndpoint()
protected void setServiceEndpoint(org.gcube.common.resources.gcore.ServiceEndpoint toSet)
protected abstract void initServiceEndpoint()
throws OutdatedServiceEndpointException,
ServiceInteractionException
public void configure()
throws ServiceInteractionException
ServiceInteractionExceptionprotected String getSEProperty(String property, boolean mandatory) throws InvalidServiceEndpointException
InvalidServiceEndpointExceptionpublic org.gcube.common.resources.gcore.ServiceEndpoint getServiceEndpoint()
Copyright © 2021. All Rights Reserved.