public class GSRESTClientImpl extends org.gcube.spatial.data.clients.AbstractGenericRESTClient implements GSRESTClient
| Constructor and Description |
|---|
GSRESTClientImpl(org.gcube.spatial.data.clients.model.ConnectionDescriptor conn) |
| Modifier and Type | Method and Description |
|---|---|
void |
createLayerAsFeatureType(String ws,
String dataStoreName,
FeatureTypeInfo ft)
/workspaces/{workspaceName}/coveragestores/{coveragestoreName}/coverages,
/workspaces/{workspaceName}/datastores/{datastoreName}/featuretypes,
/workspaces/{workspaceName}/wmsstores/{wmsstoreName}/wmslayers, or
/workspaces/{workspaceName}/wmtsstores/{wmststoreName}/wmtslayers
|
void |
createStyle(String name,
String content) |
void |
createWorkspace(String ws) |
void |
deleteDataStore(String ds,
boolean recurse) |
void |
deleteLayer(String layer,
boolean recurse) |
void |
deleteStyle(String style,
boolean purgeSLD,
boolean updateReferences) |
void |
deleteWorkspace(String ws,
boolean recurse) |
org.json.simple.JSONObject |
getDataStore(String workspace,
String dsName) |
org.json.simple.JSONObject |
getDataStoresInWorkspace(String ws) |
List<String> |
getDataStoresNamesInWorkspace(String ws) |
FeatureTypeInfo |
getFeatureType(String workspace,
String featureName) |
List<String> |
getFeatureTypesInDataStore(String workspace,
String datastore) |
List<String> |
getFeatureTypesInWorkspace(String workspace) |
org.json.simple.JSONObject |
getLayer(String layerName) |
org.json.simple.JSONObject |
getLayerInWorkspace(String ws,
String layerName) |
List<String> |
getLayers() |
List<String> |
getLayers(String workspace) |
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 |
publishDataStore(String ws,
org.json.simple.JSONObject parameters)
Publish a DS described in @param parameters.
|
authenticate, authenticate, check, delete, exist, get, get, get, get, getConn, getExistsPath, getInstance, makeCall, post, post, post, post, put, put, register, register, resolve, setBasePath, setDefaultMediaType, setHTTPBasicAuthclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic GSRESTClientImpl(org.gcube.spatial.data.clients.model.ConnectionDescriptor conn)
public 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 FeatureTypeInfo getFeatureType(String workspace, String featureName) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
getFeatureType in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic List<String> getFeatureTypesInDataStore(String workspace, String datastore) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
getFeatureTypesInDataStore in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic List<String> getFeatureTypesInWorkspace(String workspace) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
getFeatureTypesInWorkspace in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic org.json.simple.JSONObject getLayer(String layerName) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
getLayer in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic org.json.simple.JSONObject getLayerInWorkspace(String ws, String layerName) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
getLayerInWorkspace in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic List<String> getLayers() throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
getLayers in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic List<String> getLayers(String workspace) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
getLayers in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic void deleteWorkspace(String ws, boolean recurse) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
deleteWorkspace in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic void deleteStyle(String style, boolean purgeSLD, boolean updateReferences) 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, boolean recurse) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
deleteDataStore in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic void deleteLayer(String layer, boolean recurse) 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
createWorkspace in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic void publishDataStore(String ws, org.json.simple.JSONObject parameters) throws Exception
GSRESTClientpublishDataStore in interface GSRESTClientExceptionpublic void createStyle(String name, String content) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
createStyle in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionpublic void createLayerAsFeatureType(String ws, String dataStoreName, FeatureTypeInfo ft) throws org.gcube.spatial.data.sdi.model.faults.RemoteException, Exception
GSRESTClientcreateLayerAsFeatureType in interface GSRESTClientorg.gcube.spatial.data.sdi.model.faults.RemoteExceptionExceptionCopyright © 2022. All Rights Reserved.