public static enum ParseHttpRequest.Method extends Enum<ParseHttpRequest.Method>
ParseHttpRequest
method type.Modifier and Type | Method and Description |
---|---|
static ParseHttpRequest.Method |
fromString(String string)
Creates a
Method from the given string. |
String |
toString()
Returns a string value of this
Method . |
static ParseHttpRequest.Method |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ParseHttpRequest.Method[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ParseHttpRequest.Method GET
public static final ParseHttpRequest.Method POST
public static final ParseHttpRequest.Method PUT
public static final ParseHttpRequest.Method DELETE
public static ParseHttpRequest.Method[] values()
for (ParseHttpRequest.Method c : ParseHttpRequest.Method.values()) System.out.println(c);
public static ParseHttpRequest.Method 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 ParseHttpRequest.Method fromString(String string)
Method
from the given string. Valid stings are GET
, POST
,
PUT
and DELETE
.string
- The string value of this Method
.Method
based on the given string.public String toString()
Method
.toString
in class Enum<ParseHttpRequest.Method>
Method
.