public enum HttpEntityType extends Enum<HttpEntityType>
| Enum Constant and Description |
|---|
ENTITY_BYTES
字节数组类型
|
ENTITY_FILE
文件类型
|
ENTITY_FORM
Url编码类型
|
ENTITY_INPUT_STREAM
字节流类型
|
ENTITY_MULTIPART
MultipartEntity类型
|
ENTITY_SERIALIZABLE
序列化对象
|
ENTITY_STRING
字符串类型
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCode() |
String |
getName() |
static HttpEntityType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpEntityType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpEntityType ENTITY_STRING
public static final HttpEntityType ENTITY_FILE
public static final HttpEntityType ENTITY_BYTES
public static final HttpEntityType ENTITY_INPUT_STREAM
public static final HttpEntityType ENTITY_SERIALIZABLE
public static final HttpEntityType ENTITY_MULTIPART
public static final HttpEntityType ENTITY_FORM
public static HttpEntityType[] values()
for (HttpEntityType c : HttpEntityType.values()) System.out.println(c);
public static HttpEntityType 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 nullpublic String getName()
public int getCode()
Copyright © 2020. All rights reserved.