public class GuacamoleProtocolVersion extends Object
Modifier and Type | Field and Description |
---|---|
static GuacamoleProtocolVersion |
LATEST
The most recent version of the Guacamole protocol at the time this
version of GuacamoleProtocolVersion was built.
|
static GuacamoleProtocolVersion |
VERSION_1_0_0
Protocol version 1.0.0 and older.
|
static GuacamoleProtocolVersion |
VERSION_1_1_0
Protocol version 1.1.0, which introduces Client-Server version
detection, arbitrary handshake instruction order, and support
for passing the client timezone to the server during the handshake.
|
static GuacamoleProtocolVersion |
VERSION_1_3_0
Protocol version 1.3.0, which introduces the "required" instruction
allowing the server to explicitly request connection parameters from the
client.
|
Constructor and Description |
---|
GuacamoleProtocolVersion(int major,
int minor,
int patch)
Generate a new GuacamoleProtocolVersion object with the given
major version, minor version, and patch version.
|
Modifier and Type | Method and Description |
---|---|
boolean |
atLeast(GuacamoleProtocolVersion otherVersion)
Returns whether this GuacamoleProtocolVersion is at least as recent as
(greater than or equal to) the given version.
|
boolean |
equals(Object obj) |
int |
getMajor()
Return the major version component of the protocol version.
|
int |
getMinor()
Return the minor version component of the protocol version.
|
int |
getPatch()
Return the patch version component of the protocol version.
|
int |
hashCode() |
static GuacamoleProtocolVersion |
parseVersion(String version)
Parse the String format of the version provided and return the
the enum value matching that version.
|
String |
toString() |
public static final GuacamoleProtocolVersion VERSION_1_0_0
public static final GuacamoleProtocolVersion VERSION_1_1_0
public static final GuacamoleProtocolVersion VERSION_1_3_0
public static final GuacamoleProtocolVersion LATEST
public GuacamoleProtocolVersion(int major, int minor, int patch)
major
- The integer representation of the major version component.minor
- The integer representation of the minor version component.patch
- The integer representation of the patch version component.public int getMajor()
public int getMinor()
public int getPatch()
public boolean atLeast(GuacamoleProtocolVersion otherVersion)
otherVersion
- The version to which this GuacamoleProtocolVersion should be compared.public static GuacamoleProtocolVersion parseVersion(String version)
version
- The String format of the version to parse.Copyright © 2020. All rights reserved.