public enum HttpMethodEnum extends Enum<HttpMethodEnum>
Enum Constant and Description |
---|
DELETE
DELETE method, normally used for deletion
|
GET
GET method, normally used for query
|
HEAD
HEAD method, normally used to query response headers
|
OPTIONS
OPTIONS method, normally used for preflight
|
POST
POST method, normally used for adding
|
PUT
PUT method, normally used for adding and modification
|
Modifier and Type | Method and Description |
---|---|
String |
getOperationType() |
static HttpMethodEnum |
getValueFromStringCode(String operationType) |
static HttpMethodEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpMethodEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpMethodEnum GET
public static final HttpMethodEnum PUT
public static final HttpMethodEnum POST
public static final HttpMethodEnum DELETE
public static final HttpMethodEnum HEAD
public static final HttpMethodEnum OPTIONS
public static HttpMethodEnum[] values()
for (HttpMethodEnum c : HttpMethodEnum.values()) System.out.println(c);
public static HttpMethodEnum 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 String getOperationType()
public static HttpMethodEnum getValueFromStringCode(String operationType)
Copyright © 2019. All rights reserved.