| GSVersion {geosapi} | R Documentation |
A GeoServer version
Description
This class allows to grab the GeoServer version. By default, a tentative is made to fetch version from web admin default page, since Geoserver REST API did not support GET operation for the Geoserver version in past releases of Geoserver.
Format
R6Class object.
Details
Geoserver REST API - Geoserver Version
Value
Object of R6Class for modelling a GeoServer version
Public fields
versionversion
valuevalue
Methods
Public methods
Method new()
Initializes an object of class GSVersion
Usage
GSVersion$new(url, user, pwd)
Arguments
urlurl
useruser
pwdpwd
Method lowerThan()
Compares to a version and returns TRUE if it is lower, FALSE otherwise
Usage
GSVersion$lowerThan(version)
Arguments
versionversion
Returns
TRUE if lower, FALSE otherwise
Method greaterThan()
Compares to a version and returns TRUE if it is greater, FALSE otherwise
Usage
GSVersion$greaterThan(version)
Arguments
versionversion
Returns
TRUE if greater, FALSE otherwise
Method equalTo()
Compares to a version and returns TRUE if it is equal, FALSE otherwise
Usage
GSVersion$equalTo(version)
Arguments
versionversion
Returns
TRUE if equal, FALSE otherwise
Method clone()
The objects of this class are cloneable with this method.
Usage
GSVersion$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
Author(s)
Emmanuel Blondel <emmanuel.blondel1@gmail.com>
Examples
## Not run:
version <- GSVersion$new(
url = "http://localhost:8080/geoserver",
user = "admin", pwd = "geoserver"
)
## End(Not run)