public class GeoserverWorkspace extends Object
| Constructor and Description |
|---|
GeoserverWorkspace(String geoserverRestUrl,
Map<String,String> headers,
String geoserverAdmin,
String geoserverPass) |
GeoserverWorkspace(String workspaceName,
String geoserverRestUrl,
Map<String,String> headers,
String geoserverAdmin,
String geoserverPass) |
| Modifier and Type | Method and Description |
|---|---|
void |
createNamespace(String namespace)
Create a new namespace.
|
void |
createWorkspace()
Creates a workspace by creating a namespace which auto-creates a bare
workspace.
|
String |
getDatasource(String workspace,
GeoserverDatasourceType datasourceType)
Gets the first available datasource on this workspace, that is of type
datasourceType.
|
List<String> |
getDatasources(String workspace)
Returns all datasource names, that exist on this workspace
|
String |
getDatasourceXML(String workspace,
String datasource)
Get vector datasources that exist in the given workspace.
|
List<FeatureType> |
getWorkspaceFeatureTypes(String workspace)
Retrieves all feature types/ layers per workspace.
|
String |
getWorkspaceServiceSettings(String workspaceName,
String service) |
void |
modifyWorkspaceWMSSettings(String workspaceName,
String title,
String description,
String maintainer,
String fees,
String accessConstraints,
String onlineResource,
boolean enabled)
TODO: Seems to work basically but active is not effective.
|
void |
setTransactional(boolean transactional,
String workspace)
Change transaction operation enabled in wfs settings.
|
public GeoserverWorkspace(String geoserverRestUrl, Map<String,String> headers, String geoserverAdmin, String geoserverPass)
public void createWorkspace()
throws IOException
workspaceName - ExceptionIOExceptionpublic void createNamespace(String namespace) throws IOException
namespace - nsUri - ExceptionIOExceptionpublic void modifyWorkspaceWMSSettings(String workspaceName, String title, String description, String maintainer, String fees, String accessConstraints, String onlineResource, boolean enabled) throws Exception
workspaceName - Exceptionpublic String getWorkspaceServiceSettings(String workspaceName, String service) throws Exception
Exceptionpublic void setTransactional(boolean transactional,
String workspace)
throws IOException
transactional - IOExceptionpublic List<String> getDatasources(String workspace) throws IOException
geoserverRestUrl - workspace - ExceptionIOExceptionpublic String getDatasource(String workspace, GeoserverDatasourceType datasourceType) throws IOException
workspace - datasourceType - ExceptionIOExceptionpublic String getDatasourceXML(String workspace, String datasource) throws IOException
workspace - datasource - ExceptionIOExceptionpublic List<FeatureType> getWorkspaceFeatureTypes(String workspace) throws IOException
workspace - IOExceptionCopyright © 2020. All rights reserved.