|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.geosolutions.geoserver.rest.manager.GeoServerRESTAbstractManager
it.geosolutions.geoserver.rest.manager.GeoServerRESTStoreManager
public class GeoServerRESTStoreManager
Manage stores.
To pass connection parameters, use the encoders derived from
GSAbstractDatastoreEncoder.
| Field Summary |
|---|
| Fields inherited from class it.geosolutions.geoserver.rest.manager.GeoServerRESTAbstractManager |
|---|
gspass, gsuser, restURL |
| Constructor Summary | |
|---|---|
GeoServerRESTStoreManager(URL restURL,
String username,
String password)
Default constructor. |
|
| Method Summary | |
|---|---|
boolean |
create(String workspace,
GSAbstractStoreEncoder store)
Create a store. |
boolean |
remove(String workspace,
GSAbstractStoreEncoder store,
boolean recurse)
Remove a given CoverageStore in a given Workspace. |
boolean |
update(String workspace,
GSAbstractStoreEncoder store)
Update a store. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GeoServerRESTStoreManager(URL restURL,
String username,
String password)
throws IllegalArgumentException,
MalformedURLException
restURL - GeoServer REST API endpointusername - GeoServer REST API authorized usernamepassword - GeoServer REST API password for the former username
MalformedURLException
IllegalArgumentException| Method Detail |
|---|
public boolean create(String workspace,
GSAbstractStoreEncoder store)
workspace - Name of the workspace to contain the store. This
will also be the prefix of any layer names contained in the
store.datastore - the set of parameters to be set to the store
(including connection parameters).
public boolean update(String workspace,
GSAbstractStoreEncoder store)
workspace - Name of the workspace that contains the store.datastore - the set of parameters to be set to the store
(including connection parameters).
public boolean remove(String workspace,
GSAbstractStoreEncoder store,
boolean recurse)
throws IllegalArgumentException,
MalformedURLException
workspace - The name of the workspacestorename - The name of the CoverageStore to remove.recurse - if remove should be performed recursively
MalformedURLException
IllegalArgumentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||