Enum Constant and Description |
---|
DELETE
The DELETE code.
|
GET
The GET code.
|
HEAD
The HEAD code.
|
OPTIONS
The OPTIONS code.
|
PATCH
The PATCH code.
|
POST
The POST code.
|
PUT
The PUT code.
|
Modifier and Type | Field and Description |
---|---|
int |
value |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString() |
static LDP.Code |
valueOf(int value)
Converts the specified integer value to a request code.
|
static LDP.Code |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LDP.Code[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LDP.Code GET
public static final LDP.Code POST
public static final LDP.Code PUT
public static final LDP.Code DELETE
public static final LDP.Code PATCH
public static final LDP.Code HEAD
public static final LDP.Code OPTIONS
public static LDP.Code[] values()
for (LDP.Code c : LDP.Code.values()) System.out.println(c);
public static LDP.Code valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static LDP.Code valueOf(int value)
value
- the integer valuejava.lang.IllegalArgumentException
- if the integer value is unrecognizedpublic java.lang.String toString()
toString
in class java.lang.Enum<LDP.Code>