public enum ServletVersion extends Enum<ServletVersion>
Enum Constant and Description |
---|
SERVLET_2_5 |
SERVLET_3_0 |
Modifier and Type | Method and Description |
---|---|
static ServletVersion |
getCurrent()
Detects current Servlet API version in use in a context of current VM/classloader.
|
boolean |
isCompliantWith(ServletVersion version)
Checks whether this version of Servlet is compliant with the provided version.
|
static ServletVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ServletVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ServletVersion SERVLET_2_5
public static final ServletVersion SERVLET_3_0
public static ServletVersion[] values()
for (ServletVersion c : ServletVersion.values()) System.out.println(c);
public static ServletVersion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static ServletVersion getCurrent()
for more details how it is detected.
public boolean isCompliantWith(ServletVersion version)
version
- a version to check compatibility of this version withCopyright © 2014 JBoss by Red Hat. All rights reserved.