Package org.apache.openejb.jee
Enum Dispatcher
- java.lang.Object
-
- java.lang.Enum<Dispatcher>
-
- org.apache.openejb.jee.Dispatcher
-
- All Implemented Interfaces:
Serializable,Comparable<Dispatcher>
public enum Dispatcher extends Enum<Dispatcher>
web-common_3_0.xsdJava class for dispatcherType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="dispatcherType"> <simpleContent> <restriction base="<http://java.sun.com/xml/ns/javaee>string"> </restriction> </simpleContent> </complexType>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DispatcherfromValue(String v)Stringvalue()static DispatchervalueOf(String name)Returns the enum constant of this type with the specified name.static Dispatcher[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FORWARD
public static final Dispatcher FORWARD
-
REQUEST
public static final Dispatcher REQUEST
-
INCLUDE
public static final Dispatcher INCLUDE
-
ASYNC
public static final Dispatcher ASYNC
-
ERROR
public static final Dispatcher ERROR
-
-
Method Detail
-
values
public static Dispatcher[] 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 (Dispatcher c : Dispatcher.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Dispatcher 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 nameNullPointerException- if the argument is null
-
value
public String value()
-
fromValue
public static Dispatcher fromValue(String v)
-
-