GSVersion: A GeoServer version

GSVersionR 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

version

version

value

value

Methods

Public methods


Method new()

Initializes an object of class GSVersion

Usage
GSVersion$new(url, user, pwd)
Arguments
url

url

user

user

pwd

pwd


Method lowerThan()

Compares to a version and returns TRUE if it is lower, FALSE otherwise

Usage
GSVersion$lowerThan(version)
Arguments
version

version

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
version

version

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
version

version

Returns

TRUE if equal, FALSE otherwise


Method clone()

The objects of this class are cloneable with this method.

Usage
GSVersion$clone(deep = FALSE)
Arguments
deep

Whether 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)


geosapi documentation built on May 29, 2024, 12:29 p.m.