public enum BaseHttpMethod extends Enum<BaseHttpMethod>
| 限定符和类型 | 类和说明 |
|---|---|
static class |
BaseHttpMethod.HttpDeleteWithEntity
delete Large implemented.
|
static class |
BaseHttpMethod.HttpGetWithEntity
get Large implemented.
|
| 枚举常量和说明 |
|---|
DELETE
delete request.
|
DELETE_LARGE
delete Large request.
|
GET
get request.
|
GET_LARGE |
HEAD
head request.
|
OPTIONS
options request.
|
PATCH
patch request.
|
POST
post request.
|
PUT
put request.
|
TRACE
trace request.
|
| 限定符和类型 | 方法和说明 |
|---|---|
protected org.apache.http.client.methods.HttpRequestBase |
createRequest(String url) |
org.apache.http.client.methods.HttpRequestBase |
init(String url) |
static BaseHttpMethod |
sourceOf(String name)
Value of
BaseHttpMethod. |
static BaseHttpMethod |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static BaseHttpMethod[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final BaseHttpMethod GET
public static final BaseHttpMethod GET_LARGE
public static final BaseHttpMethod POST
public static final BaseHttpMethod PUT
public static final BaseHttpMethod DELETE
public static final BaseHttpMethod DELETE_LARGE
public static final BaseHttpMethod HEAD
public static final BaseHttpMethod TRACE
public static final BaseHttpMethod PATCH
public static final BaseHttpMethod OPTIONS
public static BaseHttpMethod[] values()
for (BaseHttpMethod c : BaseHttpMethod.values()) System.out.println(c);
public static BaseHttpMethod valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public org.apache.http.client.methods.HttpRequestBase init(String url)
protected org.apache.http.client.methods.HttpRequestBase createRequest(String url)
public static BaseHttpMethod sourceOf(String name)
BaseHttpMethod.name - method nameBaseHttpMethodCopyright © 2018–2024 Alibaba Group. All rights reserved.