public class RESTDataStore extends Object
This is the XML document returned by GeoServer when requesting a DataStore:
<dataStore>
<name>sf</name>
<enabled>true</enabled>
<workspace>
<name>sf</name>
<atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate"
href="http://localhost:8080/geoserver/rest/workspaces/sf.xml"
type="application/xml"/>
</workspace>
<connectionParameters>
<entry key="namespace">http://www.openplans.org/spearfish</entry>
<entry key="url">file:data/sf</entry>
</connectionParameters>
<featureTypes>
<atom:link xmlns:atom="http://www.w3.org/2005/Atom" rel="alternate"
href="http://localhost:8080/geoserver/rest/workspaces/sf/datastores/sf/featuretypes.xml"
type="application/xml"/>
</featureTypes>
</dataStore>
Note: the whole XML fragment is stored in memory. At the moment, there are
methods to retrieve only the more useful data.| Modifier and Type | Class and Description |
|---|---|
static class |
RESTDataStore.DBType |
| Modifier | Constructor and Description |
|---|---|
protected |
RESTDataStore(org.jdom.Element dsElem) |
| Modifier and Type | Method and Description |
|---|---|
static RESTDataStore |
build(String xml) |
protected String |
getConnectionParameter(String paramName) |
Map<String,String> |
getConnectionParameters() |
String |
getDescription() |
String |
getName() |
String |
getStoreType() |
RESTDataStore.DBType |
getType() |
String |
getWorkspaceName() |
boolean |
isEnabled() |
public static RESTDataStore build(String xml)
public String getName()
public String getStoreType()
public String getDescription()
public boolean isEnabled()
public String getWorkspaceName()
public RESTDataStore.DBType getType()
Copyright © 2007–2016 PDOK. All rights reserved.