public class GSRESTClientImpl extends org.gcube.spatial.data.clients.AbstractGenericRESTClient implements GSRESTClient, org.gcube.spatial.data.clients.GenericLoginClient
| Constructor and Description |
|---|
GSRESTClientImpl(org.gcube.spatial.data.clients.model.ConnectionDescriptor conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
createWorkspace(String ws)
RESTLayer l=reader.getLayer(workspace, toSetLayerName);
RESTFeatureType f= reader.getFeatureType(l);
|
void |
deleteDataStore(String ds)
publisher.removeDatastore(toDelete.getWorkspace(), toDelete.getStore(), true);
|
void |
deleteLayer(String layer) |
void |
deleteStyle(String style) |
void |
deleteWorkspace(String ws)
publisher.removeWorkspace(toDelete.getWorkspace(), true);
|
boolean |
exist() |
org.json.simple.JSONObject |
getDataStore(String workspace,
String dsName) |
org.json.simple.JSONObject |
getDataStoresInWorkspace(String ws) |
List<String> |
getDataStoresNamesInWorkspace(String ws) |
String |
getSLD(String styleName) |
org.json.simple.JSONObject |
getStyles() |
org.json.simple.JSONObject |
getStylesByLayer(String layer) |
org.json.simple.JSONObject |
getStylesInWorkspace(String ws) |
List<String> |
getStylesNames() |
List<String> |
getStylesNamesByLayer(String layer) |
List<String> |
getStylesNamesinWorkspace(String ws) |
org.json.simple.JSONObject |
getWorkspace(String workspace) |
List<String> |
getWorkspaceNames() |
org.json.simple.JSONObject |
getWorkspaces() |
void |
login() |
void |
login(org.gcube.spatial.data.sdi.model.gn.LoginLevel lvl) |
public GSRESTClientImpl(org.gcube.spatial.data.clients.model.ConnectionDescriptor conn)
public void login()
login in interface org.gcube.spatial.data.clients.GenericLoginClientpublic void login(org.gcube.spatial.data.sdi.model.gn.LoginLevel lvl)
login in interface org.gcube.spatial.data.clients.GenericLoginClientpublic org.json.simple.JSONObject getWorkspaces()
throws org.gcube.spatial.data.sdi.model.faults.RemoteException,
Exception
getWorkspaces in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic org.json.simple.JSONObject getWorkspace(String workspace) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
getWorkspace in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic org.json.simple.JSONObject getDataStoresInWorkspace(String ws) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
getDataStoresInWorkspace in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic org.json.simple.JSONObject getStyles()
throws org.gcube.spatial.data.sdi.model.faults.RemoteException,
Exception
getStyles in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic org.json.simple.JSONObject getStylesByLayer(String layer) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
getStylesByLayer in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic org.json.simple.JSONObject getStylesInWorkspace(String ws) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
getStylesInWorkspace in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic List<String> getWorkspaceNames() throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
getWorkspaceNames in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic List<String> getDataStoresNamesInWorkspace(String ws) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
getDataStoresNamesInWorkspace in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic List<String> getStylesNames() throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
getStylesNames in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic List<String> getStylesNamesinWorkspace(String ws) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
getStylesNamesinWorkspace in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic List<String> getStylesNamesByLayer(String layer) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
getStylesNamesByLayer in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic org.json.simple.JSONObject getDataStore(String workspace, String dsName) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
getDataStore in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic String getSLD(String styleName) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
getSLD in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic void deleteWorkspace(String ws) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
GSRESTClientdeleteWorkspace in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic void deleteStyle(String style) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
deleteStyle in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic void deleteDataStore(String ds) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
GSRESTClientdeleteDataStore in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic void deleteLayer(String layer) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
deleteLayer in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic void createWorkspace(String ws) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
GSRESTClientcreateWorkspace in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic boolean exist()
exist in interface GSRESTClientCopyright © 2021. All Rights Reserved.