TomcatMajorMinor

class tomcatmanager.models.TomcatMajorMinor(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

An enumeration of the supported Tomcat major and minor version numbers

Major and Minor have the meanings defined at https://semver.org.

This enumeration includes a value VNEXT, so that this module can mostly keep working when accessing a version of Tomcat that the module doesn’t officially support yet.

It also includes a value UNSUPPORTED, for older versions of Tomcat that are unknown to this module.

New in version 3.0.0.

V8_5 = '8.5'
V9_0 = '9.0'
V10_0 = '10.0'
V10_1 = '10.1'
VNEXT = 'next'
UNSUPPORTED = 'unsupported'
classmethod parse(version_string: str) TomcatMajorMinor

Return one of the enums from a string sent by the Tomcat Manager web application.

Parameters:

version_string – the string value of the application state from the tomcat server

Returns:

TomcatMajorMinor instance

Raises:

ValueError – if the version string does not represent a known app

static supported() List

Return the list of officially supported Tomcat major versions

classmethod lowest_supported() TomcatMajorMinor

Return the lowest officially supported Tomcat major version

classmethod highest_supported() TomcatMajorMinor

Return the highest officially supported Tomcat major version

This does not include TomcatMajorMinor.VNEXT, which exists to ensure this module mostly works on future versions of tomcat before official support is added.