org.apache.tomee.common
Enum TomcatVersion
java.lang.Object
java.lang.Enum<TomcatVersion>
org.apache.tomee.common.TomcatVersion
- All Implemented Interfaces:
- Serializable, Comparable<TomcatVersion>
public enum TomcatVersion
- extends Enum<TomcatVersion>
- Version:
- $Rev$ $Date$
v3
public static final TomcatVersion v3
v40
public static final TomcatVersion v40
v41
public static final TomcatVersion v41
v50
public static final TomcatVersion v50
v55
public static final TomcatVersion v55
v6
public static final TomcatVersion v6
v7
public static final TomcatVersion v7
UNKNOWN
public static final TomcatVersion UNKNOWN
values
public static TomcatVersion[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (TomcatVersion c : TomcatVersion.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static TomcatVersion valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
getServerNumber
public String getServerNumber()
getServerBuilt
public String getServerBuilt()
isTheVersion
public boolean isTheVersion()
hasAnnotationProcessingSupport
public static boolean hasAnnotationProcessingSupport()
get
public static TomcatVersion get()
Copyright © 1999–2015 The Apache Software Foundation. All rights reserved.