Package org.gcube.smartgears.extensions
Enum HttpExtension.Method
- java.lang.Object
-
- java.lang.Enum<HttpExtension.Method>
-
- org.gcube.smartgears.extensions.HttpExtension.Method
-
- All Implemented Interfaces:
Serializable,Comparable<HttpExtension.Method>
- Enclosing class:
- HttpExtension
public static enum HttpExtension.Method extends Enum<HttpExtension.Method>
Enumeration of HTTP methods.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HttpExtension.MethodvalueOf(String name)Returns the enum constant of this type with the specified name.static HttpExtension.Method[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GET
public static final HttpExtension.Method GET
-
PUT
public static final HttpExtension.Method PUT
-
POST
public static final HttpExtension.Method POST
-
HEAD
public static final HttpExtension.Method HEAD
-
DELETE
public static final HttpExtension.Method DELETE
-
OPTIONS
public static final HttpExtension.Method OPTIONS
-
TRACE
public static final HttpExtension.Method TRACE
-
-
Method Detail
-
values
public static HttpExtension.Method[] 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 (HttpExtension.Method c : HttpExtension.Method.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpExtension.Method 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
-
-