Class GeoserverLayer
- java.lang.Object
-
- de.narimo.georepo.server.geoserver.GeoserverLayer
-
- Direct Known Subclasses:
GeoserverVectorLayer
public class GeoserverLayer extends Object
-
-
Constructor Summary
Constructors Constructor Description GeoserverLayer(javax.servlet.ServletContext ctx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandatasourceExists(String datasourcesXML, String datasource)Check, whether a datasource with given name already exists in the workspace.StringgetDatasourcesXML(String workspace)Get vector datasources that exist in the given workspace.StringgetDbSchema()StringgetDbUserName()StringgetDbUserPass()StringgetGeoserverPass()StringgetGeoserverRestUrl()StringgetGeoserverUrl()StringgetGeoserverUser()Map<String,String>getHeaders()StringgetLayersXML()Get existing layers on this geoserver over all workspaces.StringgetPgPort()StringgetWorkspacesXML()booleanlayerExists(String layerTitle)Determines, whether a layername already exists on the geoserver instance.voidsetDbUserName(String dbUserName)voidsetDbUserPass(String dbUserPass)booleanwmsstoreExists(String wmsstoresXML, String wmsstore)booleanworkspaceExists(String workspacesXML, String workspace)
-
-
-
Method Detail
-
layerExists
public boolean layerExists(String layerTitle) throws IOException
Determines, whether a layername already exists on the geoserver instance. Actually, we would need to check if layer exists in a workspace, because therein layers have to be unique.- Returns:
- Throws:
IOException
-
datasourceExists
public boolean datasourceExists(String datasourcesXML, String datasource) throws IOException
Check, whether a datasource with given name already exists in the workspace.- Parameters:
workspace-datasource-- Returns:
- Throws:
ExceptionIOException
-
wmsstoreExists
public boolean wmsstoreExists(String wmsstoresXML, String wmsstore) throws IOException
- Throws:
IOException
-
workspaceExists
public boolean workspaceExists(String workspacesXML, String workspace) throws IOException
- Throws:
IOException
-
getDatasourcesXML
public String getDatasourcesXML(String workspace) throws IOException
Get vector datasources that exist in the given workspace.- Parameters:
workspace-datasource-- Throws:
ExceptionIOException
-
getWorkspacesXML
public String getWorkspacesXML() throws IOException
- Throws:
IOException
-
getLayersXML
public String getLayersXML() throws IOException
Get existing layers on this geoserver over all workspaces.- Throws:
ExceptionIOException
-
getDbUserName
public String getDbUserName()
-
setDbUserName
public void setDbUserName(String dbUserName)
-
getDbUserPass
public String getDbUserPass()
-
setDbUserPass
public void setDbUserPass(String dbUserPass)
-
getGeoserverUser
public String getGeoserverUser()
-
getGeoserverPass
public String getGeoserverPass()
-
getGeoserverUrl
public String getGeoserverUrl()
-
getGeoserverRestUrl
public String getGeoserverRestUrl()
-
getDbSchema
public String getDbSchema()
-
getPgPort
public String getPgPort()
-
-