org.apache.tomee.common
Enum TomcatVersion

java.lang.Object
  extended by java.lang.Enum<TomcatVersion>
      extended by org.apache.tomee.common.TomcatVersion
All Implemented Interfaces:
Serializable, Comparable<TomcatVersion>

public enum TomcatVersion
extends Enum<TomcatVersion>

Version:
$Rev$ $Date$

Enum Constant Summary
UNKNOWN
           
v3
           
v40
           
v41
           
v50
           
v55
           
v6
           
v7
           
 
Method Summary
static TomcatVersion get()
           
 String getServerBuilt()
           
 String getServerNumber()
           
static boolean hasAnnotationProcessingSupport()
           
 boolean isTheVersion()
           
static TomcatVersion valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TomcatVersion[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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.