Package de.xima.fc.mdl.enums
Enum EServletAction
- java.lang.Object
-
- java.lang.Enum<EServletAction>
-
- de.xima.fc.mdl.enums.EServletAction
-
- All Implemented Interfaces:
Serializable
,Comparable<EServletAction>
public enum EServletAction extends Enum<EServletAction>
An enumeration of the available HTTP methods for a HTTP servlet.- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EServletAction
valueOf(String name)
Returns the enum constant of this type with the specified name.static EServletAction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
POST
public static final EServletAction POST
HTTP POST method.
-
GET
public static final EServletAction GET
HTTP GET method.
-
DELETE
public static final EServletAction DELETE
HTTP DELETE method.
-
PUT
public static final EServletAction PUT
HTTP PUT method.
-
HEAD
public static final EServletAction HEAD
HTTP HEAD method.
-
OPTIONS
public static final EServletAction OPTIONS
HTTP OPTIONS method.
-
TRACE
public static final EServletAction TRACE
HTTP TRACE method.
-
-
Method Detail
-
values
public static EServletAction[] 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 (EServletAction c : EServletAction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EServletAction 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
-
-