public enum HttpParamType extends Enum<HttpParamType>
Enum Constant and Description |
---|
BINARY_BODY
转换成原始二进制输入流作为request body 数据流
|
FORM_DATA
http request body form
form表单,可以包含文件上传,数据项类型只能为 字符串 或者 文件(输入流)
|
FORM_DATA_URLENCODED
form表单,不能用于上传文件,因为会转换成
键值对,比如,name=java&age = 23
|
HTML_BODY
转换成html字符串作为request body 数据流
|
JSON_BODY
http request body json string to stream
转换成json字符串作为request body 数据流
|
TEXT_BODY
转换成普通文本字符串作为request body 数据流
|
XML_BODY
转换成xml字符串作为request body 数据流
|
Modifier and Type | Method and Description |
---|---|
static HttpParamType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpParamType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpParamType FORM_DATA
public static final HttpParamType FORM_DATA_URLENCODED
public static final HttpParamType JSON_BODY
public static final HttpParamType TEXT_BODY
public static final HttpParamType XML_BODY
public static final HttpParamType HTML_BODY
public static final HttpParamType BINARY_BODY
public static HttpParamType[] values()
for (HttpParamType c : HttpParamType.values()) System.out.println(c);
public static HttpParamType 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 nullCopyright © 2020. All rights reserved.