public enum RequestMode extends java.lang.Enum<RequestMode>
| Enum Constant and Description |
|---|
DELETE
Deletes data from the server (equivilant to GET with relevant
headers)
|
GET
Gets data from the server as String
|
HEAD
Equivalent GET call but without any response body
|
OPTIONS
Gets a full list of available actions on an endpoint
|
PATCH
Equivalent PUT call but supports partial objects
|
POST
Posts to a server
|
PUT
Puts data to the server (equivilant to POST with relevant headers)
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCanonical() |
static RequestMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RequestMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RequestMode GET
public static final RequestMode POST
public static final RequestMode PUT
public static final RequestMode DELETE
public static final RequestMode HEAD
public static final RequestMode OPTIONS
public static final RequestMode PATCH
public static RequestMode[] values()
for (RequestMode c : RequestMode.values()) System.out.println(c);
public static RequestMode 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 java.lang.String getCanonical()