Skip to contents

Geoserver REST API Namespace Manager

Geoserver REST API Namespace Manager

Format

R6Class object.

Value

Object of R6Class with methods for managing the namespaces of a GeoServer instance.

Author

Emmanuel Blondel <emmanuel.blondel1@gmail.com>

Super class

geosapi::GSManager -> GSNamespaceManager

Methods

Inherited methods


Method getNamespaces()

Get the list of available namespace. Re

Usage

GSNamespaceManager$getNamespaces()

Returns

an object of class list containing items of class GSNamespace


Method getNamespaceNames()

Get the list of available namespace names.

Usage

GSNamespaceManager$getNamespaceNames()

Returns

a vector of class character


Method getNamespace()

Get a GSNamespace object given a namespace name.

Usage

GSNamespaceManager$getNamespace(ns)

Arguments

ns

namespace

Returns

an object of class GSNamespace


Method createNamespace()

Creates a GeoServer namespace given a prefix, and an optional URI.

Usage

GSNamespaceManager$createNamespace(prefix, uri)

Arguments

prefix

prefix

uri

uri

Returns

TRUE if the namespace has been successfully created, FALSE otherwise


Method updateNamespace()

Updates a GeoServer namespace given a prefix, and an optional URI.

Usage

GSNamespaceManager$updateNamespace(prefix, uri)

Arguments

prefix

prefix

uri

uri

Returns

TRUE if the namespace has been successfully updated, FALSE otherwise


Method deleteNamespace()

Deletes a GeoServer namespace given a name.

Usage

GSNamespaceManager$deleteNamespace(name, recurse = FALSE)

Arguments

name

name

recurse

recurse

Returns

TRUE if the namespace has been successfully deleted, FALSE otherwise


Method clone()

The objects of this class are cloneable with this method.

Usage

GSNamespaceManager$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

# \dontrun{
   GSNamespaceManager$new("http://localhost:8080/geoserver", "admin", "geoserver")
#> <GSNamespaceManager>
#>   Inherits from: <GSManager>
#>   Public:
#>     ERROR: function (text) 
#>     INFO: function (text) 
#>     WARN: function (text) 
#>     clone: function (deep = FALSE) 
#>     connect: function () 
#>     createNamespace: function (prefix, uri) 
#>     deleteNamespace: function (name, recurse = FALSE) 
#>     getClassName: function () 
#>     getCoverageStoreManager: function () 
#>     getDataStoreManager: function () 
#>     getNamespace: function (ns) 
#>     getNamespaceManager: function () 
#>     getNamespaceNames: function () 
#>     getNamespaces: function () 
#>     getServiceManager: function () 
#>     getStyleManager: function () 
#>     getSystemStatus: function () 
#>     getUrl: function () 
#>     getWorkspaceManager: function () 
#>     initialize: function (url, user, pwd, logger = NULL, keyring_backend = "env") 
#>     logger: function (type, text) 
#>     loggerType: NULL
#>     monitor: function (file = NULL, append = FALSE, sleep = 1) 
#>     reload: function () 
#>     updateNamespace: function (prefix, uri) 
#>     url: http://localhost:8080/geoserver/rest
#>     verbose.debug: FALSE
#>     verbose.info: FALSE
#>     version: NULL
#>   Private:
#>     keyring_backend: backend_env, backend, R6
#>     keyring_service: geosapi@http://localhost:8080/geoserver
#>     user: admin
# }