34 lines
974 B
Java
34 lines
974 B
Java
package org.gcube.spatial.data.clients.geoserver;
|
|
|
|
import java.util.List;
|
|
|
|
import org.gcube.spatial.data.sdi.model.faults.RemoteException;
|
|
import org.json.simple.JSONArray;
|
|
import org.json.simple.JSONObject;
|
|
|
|
public interface GSRESTClient {
|
|
|
|
|
|
// ********** READ OPS
|
|
|
|
// WS
|
|
|
|
public JSONArray getWorkspaces()throws RemoteException,Exception;
|
|
public JSONObject getWorkspace(String workspace)throws RemoteException, Exception;
|
|
|
|
// DS
|
|
public List<String> getDataStoresInWorkspace(String ws)throws RemoteException,Exception;
|
|
|
|
// SLD
|
|
public List<String> getStyles()throws RemoteException,Exception;
|
|
public List<String> getStylesInWorkspace(String ws)throws RemoteException,Exception;
|
|
public List<String> getStylesByLayer(String layer)throws RemoteException,Exception;
|
|
|
|
// *********** CREATE OPS
|
|
public void createWorkspace(String ws)throws RemoteException,Exception;
|
|
|
|
public void createStyle(String name,String content)throws RemoteException,Exception;
|
|
|
|
|
|
}
|