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 |
createWFSService()
Creates a WFS service which is disabled by default.
|
void |
createWMSService() |
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,
boolean includeDiffLayers)
Retrieves all feature types/ layers per workspace.
|
String |
getWorkspaceServiceSettings(String service) |
static void |
main(String[] args) |
void |
modifyWorkspaceOWSSettings(String service,
String title,
String description,
String maintainer,
String fees,
String accessConstraints,
String onlineResource,
List<String> keywords,
boolean enabled) |
void |
modifyWorkspaceSettings(String charset,
String proxyBaseUrl,
Contact contact,
String onlineResource,
boolean enabled) |
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 modifyWorkspaceSettings(String charset, String proxyBaseUrl, Contact contact, String onlineResource, boolean enabled) throws IOException
IOExceptionpublic void modifyWorkspaceOWSSettings(String service, String title, String description, String maintainer, String fees, String accessConstraints, String onlineResource, List<String> keywords, boolean enabled) throws IOException
IOExceptionpublic String getWorkspaceServiceSettings(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, boolean includeDiffLayers) throws IOException
workspace - IOExceptionpublic void createWFSService()
throws IOException
workspace - IOExceptionpublic void createWMSService()
throws IOException
IOExceptionpublic static void main(String[] args) throws com.fasterxml.jackson.core.JsonProcessingException
com.fasterxml.jackson.core.JsonProcessingExceptionCopyright © 2021. All rights reserved.