| GSManager {geosapi} | R Documentation |
Geoserver REST API Manager
Description
Geoserver REST API Manager
Geoserver REST API Manager
Format
R6Class object.
Value
Object of R6Class with methods for communication with
the REST API of a GeoServer instance.
Public fields
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
GSVersionobject
Methods
Public methods
Method logger()
Prints a log message
Usage
GSManager$logger(type, text)
Arguments
typetype of log, "INFO", "WARN", "ERROR"
texttext
Method INFO()
Prints an INFO log message
Usage
GSManager$INFO(text)
Arguments
texttext
Method WARN()
Prints an WARN log message
Usage
GSManager$WARN(text)
Arguments
texttext
Method ERROR()
Prints an ERROR log message
Usage
GSManager$ERROR(text)
Arguments
texttext
Method 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').
Usage
GSManager$new(url, user, pwd, logger = NULL, keyring_backend = "env")
Arguments
urlurl
useruser
pwdpwd
loggerlogger
keyring_backendkeyring backend. Default is 'env'
Method getUrl()
Get URL
Usage
GSManager$getUrl()
Returns
the Geoserver URL
Method connect()
Connects to geoServer
Usage
GSManager$connect()
Returns
TRUE if connected, raises an error otherwise
Method reload()
Reloads the GeoServer catalog
Usage
GSManager$reload()
Returns
TRUE if reloaded, FALSE otherwise
Method getSystemStatus()
Get system status
Usage
GSManager$getSystemStatus()
Returns
an object of class data.frame given the date time and metrics value
Method monitor()
Monitors the Geoserver by launching a small shiny monitoring application
Usage
GSManager$monitor(file = NULL, append = FALSE, sleep = 1)
Arguments
filefile where to store monitoring results
appendwhether to append results to existing files
sleepsleeping interval to trigger a system status call
Method getClassName()
Get class name
Usage
GSManager$getClassName()
Returns
the self class name, as character
Method getWorkspaceManager()
Get Workspace manager
Usage
GSManager$getWorkspaceManager()
Returns
an object of class GSWorkspaceManager
Method getNamespaceManager()
Get Namespace manager
Usage
GSManager$getNamespaceManager()
Returns
an object of class GSNamespaceManager
Method getDataStoreManager()
Get Datastore manager
Usage
GSManager$getDataStoreManager()
Returns
an object of class GSDataStoreManager
Method getCoverageStoreManager()
Get Coverage store manager
Usage
GSManager$getCoverageStoreManager()
Returns
an object of class GSCoverageStoreManager
Method getServiceManager()
Get service manager
Usage
GSManager$getServiceManager()
Returns
an object of class GSServiceManager
Method getStyleManager()
Get style manager
Usage
GSManager$getStyleManager()
Returns
an object of class GSStyleManager
Method clone()
The objects of this class are cloneable with this method.
Usage
GSManager$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
Author(s)
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
Examples
## Not run:
GSManager$new("http://localhost:8080/geoserver", "admin", "geoserver")
## End(Not run)