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.info
if geosapi logs have to be printed
verbose.debug
if curl logs have to be printed
loggerType
the type of logger
url
the Base url of GeoServer
version
the version of Geoserver. Handled as GSVersion
object
logger()
Prints a log message
GSManager$logger(type, text)
type
type of log, "INFO", "WARN", "ERROR"
text
text
INFO()
Prints an INFO log message
GSManager$INFO(text)
text
text
WARN()
Prints an WARN log message
GSManager$WARN(text)
text
text
ERROR()
Prints an ERROR log message
GSManager$ERROR(text)
text
text
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")
url
url
user
user
pwd
pwd
logger
logger
keyring_backend
keyring 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)
file
file where to store monitoring results
append
whether to append results to existing files
sleep
sleeping 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)
deep
Whether 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.