public static enum TomcatInstall.TomcatVersion extends java.lang.Enum<TomcatInstall.TomcatVersion>
Enum Constant and Description |
---|
TOMCAT6 |
TOMCAT7 |
TOMCAT755 |
TOMCAT779 |
TOMCAT8 |
TOMCAT9 |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContainerId() |
java.lang.String |
getDownloadURL() |
int |
getVersion() |
java.lang.String |
jarSkipPropertyName() |
int |
toInteger()
Converts the version to an integer
This differs from
getVersion() in that this does not always return the version
number. |
static TomcatInstall.TomcatVersion |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TomcatInstall.TomcatVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TomcatInstall.TomcatVersion TOMCAT6
public static final TomcatInstall.TomcatVersion TOMCAT7
public static final TomcatInstall.TomcatVersion TOMCAT755
public static final TomcatInstall.TomcatVersion TOMCAT779
public static final TomcatInstall.TomcatVersion TOMCAT8
public static final TomcatInstall.TomcatVersion TOMCAT9
public static TomcatInstall.TomcatVersion[] values()
for (TomcatInstall.TomcatVersion c : TomcatInstall.TomcatVersion.values()) System.out.println(c);
public static TomcatInstall.TomcatVersion valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int toInteger()
getVersion()
in that this does not always return the version
number. For Tomcat 9, there is no DeltaSession manager, so it must use the session manager
from Tomcat 8. Thus, this function returns 8 when asked for the Tomcat 9 version number.public int getVersion()
public java.lang.String getContainerId()
public java.lang.String getDownloadURL()
public java.lang.String jarSkipPropertyName()