| GSManager | R Documentation |
Geoserver REST API Manager
Geoserver REST API Manager
R6Class object.
Object of R6Class with methods for communication with
the REST API of a GeoServer instance.
verbose.infoif geosapi logs have to be printed
verbose.debugif curl logs have to be printed
loggerTypethe type of logger
urlthe Base url of GeoServer
versionthe version of Geoserver. Handled as GSVersion object
logger()Prints a log message
GSManager$logger(type, text)
typetype of log, "INFO", "WARN", "ERROR"
texttext
INFO()Prints an INFO log message
GSManager$INFO(text)
texttext
WARN()Prints an WARN log message
GSManager$WARN(text)
texttext
ERROR()Prints an ERROR log message
GSManager$ERROR(text)
texttext
new()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.
The keyring_backend can be set to use a different backend for storing
the Geoserver user password with keyring (Default value is 'env').
GSManager$new(url, user, pwd, logger = NULL, keyring_backend = "env")
urlurl
useruser
pwdpwd
loggerlogger
keyring_backendkeyring backend. Default is 'env'
getUrl()Get URL
GSManager$getUrl()
the Geoserver URL
connect()Connects to geoServer
GSManager$connect()
TRUE if connected, raises an error otherwise
reload()Reloads the GeoServer catalog
GSManager$reload()
TRUE if reloaded, FALSE otherwise
getSystemStatus()Get system status
GSManager$getSystemStatus()
an object of class data.frame given the date time and metrics value
monitor()Monitors the Geoserver by launching a small shiny monitoring application
GSManager$monitor(file = NULL, append = FALSE, sleep = 1)
filefile where to store monitoring results
appendwhether to append results to existing files
sleepsleeping interval to trigger a system status call
getClassName()Get class name
GSManager$getClassName()
the self class name, as character
getWorkspaceManager()Get Workspace manager
GSManager$getWorkspaceManager()
an object of class GSWorkspaceManager
getNamespaceManager()Get Namespace manager
GSManager$getNamespaceManager()
an object of class GSNamespaceManager
getDataStoreManager()Get Datastore manager
GSManager$getDataStoreManager()
an object of class GSDataStoreManager
getCoverageStoreManager()Get Coverage store manager
GSManager$getCoverageStoreManager()
an object of class GSCoverageStoreManager
getServiceManager()Get service manager
GSManager$getServiceManager()
an object of class GSServiceManager
getStyleManager()Get style manager
GSManager$getStyleManager()
an object of class GSStyleManager
clone()The objects of this class are cloneable with this method.
GSManager$clone(deep = FALSE)
deepWhether to make a deep clone.
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
## Not run:
GSManager$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.