public enum ApiHttpMethodEnum extends java.lang.Enum<ApiHttpMethodEnum>
| Enum Constant and Description |
|---|
DELETE
delete.
|
GET
get.
|
HEAD
head.
|
NOT_HTTP
not_http.
|
OPTIONS
options.
|
PATCH
put.
|
POST
post.
|
PUT
put.
|
TRACE
trace.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
get name.
|
java.lang.Integer |
getValue()
get value.
|
static java.lang.Integer |
getValueByName(java.lang.String name)
getValueByName.
|
static ApiHttpMethodEnum |
of(java.lang.String name)
build ApiHttpMethodEnum by name .
|
static ApiHttpMethodEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ApiHttpMethodEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ApiHttpMethodEnum GET
public static final ApiHttpMethodEnum HEAD
public static final ApiHttpMethodEnum POST
public static final ApiHttpMethodEnum PUT
public static final ApiHttpMethodEnum PATCH
public static final ApiHttpMethodEnum DELETE
public static final ApiHttpMethodEnum OPTIONS
public static final ApiHttpMethodEnum TRACE
public static final ApiHttpMethodEnum NOT_HTTP
public static ApiHttpMethodEnum[] values()
for (ApiHttpMethodEnum c : ApiHttpMethodEnum.values()) System.out.println(c);
public static ApiHttpMethodEnum 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 getName()
public java.lang.Integer getValue()
public static java.lang.Integer getValueByName(java.lang.String name)
name - namepublic static ApiHttpMethodEnum of(java.lang.String name)
name - nameCopyright © 2024 The Apache Software Foundation. All rights reserved.