public enum ImContentType extends Enum<ImContentType>
该类限定并明确目前所支持的内容类型(ContentType),并提供枚举选择
HTTP content type (ContentType) enumeration class
This class defines and clarifies the currently supported content types (ContentType) and provides enumeration options.
| 枚举常量和说明 |
|---|
APPLICATION_JSON
JSON内容数据类型
JSON content data type
|
APPLICATION_OCTET_STREAM
二进制流(未知内容类型)
Binary stream (unknown content type)
|
APPLICATION_X_WWW_FORM_URLENCODED
表单类型
Form type
|
APPLICATION_XML
XML内容数据类型
XML content data type
|
MULTIPART_FORM_DATA
二进制类型(多行表单)
Binary type (multi-line form)
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
toString()
转换内容类型完整描述字符
Convert content type full description character
|
static ImContentType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ImContentType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ImContentType APPLICATION_X_WWW_FORM_URLENCODED
Form type
public static final ImContentType MULTIPART_FORM_DATA
Binary type (multi-line form)
public static final ImContentType APPLICATION_JSON
JSON content data type
public static final ImContentType APPLICATION_XML
XML content data type
public static final ImContentType APPLICATION_OCTET_STREAM
Binary stream (unknown content type)
public static ImContentType[] values()
for (ImContentType c : ImContentType.values()) System.out.println(c);
public static ImContentType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String toString()
Convert content type full description character
toString 在类中 Enum<ImContentType>Copyright © 2019. All rights reserved.