GSServiceManager | R Documentation |
Geoserver REST API Service Manager
Geoserver REST API Service Manager
R6Class
object.
Object of R6Class
with methods for managing GeoServer services
new(url, user, pwd, logger)
This method is used to instantiate a GSManager with the url
of the
GeoServer and credentials to authenticate (user
/pwd
). By default,
the logger
argument will be set to NULL
(no logger). This argument
accepts two possible values: INFO
: to print only geosapi logs,
DEBUG
: to print geosapi and CURL logs
getServiceSettings(service, ws)
getWmsSettings(ws)
Get WMS settings. To get the WMS settings for a specific workspace,
specify the workspace name as ws
parameter, otherwise global settings are
retrieved.
getWfsSettings(ws)
Get WFS settings. To get the WFS settings for a specific workspace,
specify the workspace name as ws
parameter, otherwise global settings are
retrieved.
getWcsSettings(ws)
Get WCS settings. To get the WCS settings for a specific workspace,
specify the workspace name as ws
parameter, otherwise global settings are
retrieved.
updateServiceSettings(serviceSettings, service, ws)
Updates the service settings with an object of class GSServiceSetting
.
An optional workspace name ws
can be specified to update service settings
applying to a workspace.
deleteServiceSettings(service, ws)
Deletes the service settings. This method is used internally by geosapi for disabling a service setting at workspace level.
updateWmsSettings(serviceSettings, ws)
Updates the WMS settings with an object of class GSServiceSetting
.
An optional workspace name ws
can be specified to update WMS settings
applying to a workspace.
updateWfsSettings(serviceSettings, ws)
Updates the WFS settings with an object of class GSServiceSetting
.
An optional workspace name ws
can be specified to update WFS settings
applying to a workspace.
updateWcsSettings(serviceSettings, ws)
Updates the WCS settings with an object of class GSServiceSettings
.
An optional workspace name ws
can be specified to update WCS settings
applying to a workspace.
enableWMS(ws)
Enables the WMS, either globally, or for a given workspace (optional)
enableWFS(ws)
Enables the WFS, either globally, or for a given workspace (optional)
enableWCS(ws)
Enables the WCS, either globally, or for a given workspace (optional)
disableServiceSettings(service, ws)
Disables a service, either globally, or for a given workspace (optional). For a global service setting, an UPDATE operation will be applied, while for a workspace service setting, a DELETE operation is applied.
disableWMS(ws)
Disables the WMS, either globally, or for a given workspace (optional)
disableWFS(ws)
Disables the WFS, either globally, or for a given workspace (optional)
disableWCS(ws)
Disables the WCS, either globally, or for a given workspace (optional)
geosapi::GSManager
-> GSServiceManager
geosapi::GSManager$ERROR()
geosapi::GSManager$INFO()
geosapi::GSManager$WARN()
geosapi::GSManager$connect()
geosapi::GSManager$getClassName()
geosapi::GSManager$getCoverageStoreManager()
geosapi::GSManager$getDataStoreManager()
geosapi::GSManager$getNamespaceManager()
geosapi::GSManager$getServiceManager()
geosapi::GSManager$getStyleManager()
geosapi::GSManager$getSystemStatus()
geosapi::GSManager$getUrl()
geosapi::GSManager$getWorkspaceManager()
geosapi::GSManager$initialize()
geosapi::GSManager$logger()
geosapi::GSManager$monitor()
geosapi::GSManager$reload()
getServiceSettings()
Get the service settings. To get the service settings for a specific workspace,
specify the workspace name as ws
parameter, otherwise global settings are
retrieved.
GSServiceManager$getServiceSettings(service, ws = NULL)
service
service
ws
workspace name
an object of class GSServiceSettings
getWmsSettings()
Get WMS settings. To get the WMS settings for a specific workspace,
specify the workspace name as ws
parameter, otherwise global settings are
retrieved.
GSServiceManager$getWmsSettings(ws = NULL)
ws
workspace name
an object of class GSServiceSettings
getWfsSettings()
Get WFS settings. To get the WFS settings for a specific workspace,
specify the workspace name as ws
parameter, otherwise global settings are
retrieved.
GSServiceManager$getWfsSettings(ws = NULL)
ws
workspace name
an object of class GSServiceSettings
getWcsSettings()
Get WCS settings. To get the WCS settings for a specific workspace,
specify the workspace name as ws
parameter, otherwise global settings are
retrieved.
GSServiceManager$getWcsSettings(ws = NULL)
ws
workspace name
an object of class GSServiceSettings
updateServiceSettings()
Updates the service settings with an object of class GSServiceSettings
.
An optional workspace name ws
can be specified to update service settings
applying to a workspace.
GSServiceManager$updateServiceSettings(serviceSettings, service, ws = NULL)
serviceSettings
serviceSettings object of class GSServiceSettings
service
service
ws
workspace name
TRUE
if updated, FALSE
otherwise
deleteServiceSettings()
Deletes the service settings. This method is used internally by geosapi for disabling a service setting at workspace level.
GSServiceManager$deleteServiceSettings(service, ws = NULL)
service
service
ws
workspace name
TRUE
if deleted, FALSE
otherwise
updateWmsSettings()
Updates the WMS settings with an object of class GSServiceSettings
.
An optional workspace name ws
can be specified to update WMS settings
applying to a workspace.
GSServiceManager$updateWmsSettings(serviceSettings, ws = NULL)
serviceSettings
service settings object of class GSServiceSettings
ws
workspace name
TRUE
if deleted, FALSE
otherwise
updateWfsSettings()
Updates the WFS settings with an object of class GSServiceSettings
.
An optional workspace name ws
can be specified to update WFS settings
applying to a workspace.
GSServiceManager$updateWfsSettings(serviceSettings, ws = NULL)
serviceSettings
service settings object of class GSServiceSettings
ws
workspace name
TRUE
if deleted, FALSE
otherwise
updateWcsSettings()
Updates the WCS settings with an object of class GSServiceSettings
.
An optional workspace name ws
can be specified to update WCS settings
applying to a workspace.
GSServiceManager$updateWcsSettings(serviceSettings, ws = NULL)
serviceSettings
service settings object of class GSServiceSettings
ws
workspace name
TRUE
if deleted, FALSE
otherwise
enableWMS()
Enables WMS service settings
GSServiceManager$enableWMS(ws = NULL)
ws
workspace name
TRUE
if enabled, FALSE
otherwise
enableWFS()
Enables WFS service settings
GSServiceManager$enableWFS(ws = NULL)
ws
workspace name
TRUE
if enabled, FALSE
otherwise
enableWCS()
Enables WCS service settings
GSServiceManager$enableWCS(ws = NULL)
ws
workspace name
TRUE
if enabled, FALSE
otherwise
disableServiceSettings()
Disables service settings
GSServiceManager$disableServiceSettings(service, ws = NULL)
service
service
ws
workspace name
TRUE
if disabled, FALSE
otherwise
disableWMS()
Disables WMS service settings
GSServiceManager$disableWMS(ws = NULL)
ws
workspace name
TRUE
if disabled, FALSE
otherwise
disableWFS()
Disables WFS service settings
GSServiceManager$disableWFS(ws = NULL)
ws
workspace name
TRUE
if disabled, FALSE
otherwise
disableWCS()
Disables WCS service settings
GSServiceManager$disableWCS(ws = NULL)
ws
workspace name
TRUE
if disabled, FALSE
otherwise
clone()
The objects of this class are cloneable with this method.
GSServiceManager$clone(deep = FALSE)
deep
Whether to make a deep clone.
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
## Not run:
GSServiceManager$new("http://localhost:8080/geoserver", "admin", "geoserver")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.