geosapi (version 0.1-0)

GSVersion: 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.

Usage

GSVersion

Arguments

Value

Object of R6Class for modelling a GeoServer version

Format

R6Class object.

Methods

new(url, user, pwd)

This method is used to instantiate a GSVersion object.

lowerThan(version)

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

greaterThan(version)

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

equalTo(version)

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

Details

Geoserver REST API - Geoserver Version

Examples

Run this code
# NOT RUN {
version <- GSVersion$new(
             url = "http://localhost:8080/geoserver",
             user = "admin", pwd = "geoserver"
           )
# }

Run the code above in your browser using DataLab