public enum HttpMethod extends Enum<HttpMethod>
枚举常量和说明 |
---|
DELETE
httpDelete
|
GET
httpGet
|
HEAD
httpHead
|
OPTIONS
httpOptions
|
PATCH_BODY
httpPatch with binary body
|
PATCH_FORM
httpPatch with form
|
POST_BODY
httpPost with binary body
|
POST_FORM
httpPost with form
|
PUT_BODY
httpPut with binary body
|
PUT_FORM
httpPut with form
|
限定符和类型 | 方法和说明 |
---|---|
String |
getAcceptContentType() |
String |
getRequestContentType() |
String |
getValue() |
static HttpMethod |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static HttpMethod[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final HttpMethod GET
public static final HttpMethod POST_FORM
public static final HttpMethod POST_BODY
public static final HttpMethod PUT_FORM
public static final HttpMethod PUT_BODY
public static final HttpMethod PATCH_FORM
public static final HttpMethod PATCH_BODY
public static final HttpMethod DELETE
public static final HttpMethod HEAD
public static final HttpMethod OPTIONS
public static HttpMethod[] values()
for (HttpMethod c : HttpMethod.values()) System.out.println(c);
public static HttpMethod valueOf(String name)
name
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值public String getValue()
public String getRequestContentType()
public String getAcceptContentType()
Copyright © 2022. All rights reserved.