public class GeoServerRESTStoreManager extends GeoServerRESTAbstractManager
GSAbstractDatastoreEncoder.gsBaseUrl, gspass, gsuser| Constructor and Description |
|---|
GeoServerRESTStoreManager(URL restURL,
String username,
String password)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public GeoServerRESTStoreManager(URL restURL, String username, String password) throws IllegalArgumentException
restURL - GeoServer REST API endpointusername - GeoServer REST API authorized usernamepassword - GeoServer REST API password for the former usernameMalformedURLExceptionIllegalArgumentExceptionpublic 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 recursivelyMalformedURLExceptionIllegalArgumentExceptionCopyright © 2007–2016 PDOK. All rights reserved.