com.stackmob.core
Enum MethodVerb
java.lang.Object
java.lang.Enum<MethodVerb>
com.stackmob.core.MethodVerb
- All Implemented Interfaces:
- Serializable, Comparable<MethodVerb>
public enum MethodVerb
- extends Enum<MethodVerb>
- implements Serializable
Represents the HTTP verbs which can be specified by a ProcessedAPIRequest.
|
Method Summary |
static MethodVerb |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static MethodVerb[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
GET
public static final MethodVerb GET
POST
public static final MethodVerb POST
PUT
public static final MethodVerb PUT
DELETE
public static final MethodVerb DELETE
values
public static MethodVerb[] 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 (MethodVerb c : MethodVerb.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static MethodVerb 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
Copyright © 2012 StackMob. All Rights Reserved.