public enum UploadDataType extends java.lang.Enum<UploadDataType>
Enum Constant and Description |
---|
BYTES
Represents raw bytes of upload data in HTTP request.
|
FORM_URL_ENCODED
Represents upload data passed in HTTP request with the
application/x-www-form-urlencoded Content-Type.
|
MULTIPART_FORM_DATA
Represents upload data passed in HTTP request with the
multipart/form-data Content-Type.
|
PLAIN_TEXT
Represents plain text upload data in HTTP request with the
text/plain Content-Type.
|
Modifier and Type | Method and Description |
---|---|
static UploadDataType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
返回具有指定名称的此类型的枚举常量。 |
static UploadDataType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
以声明顺序返回包含此枚举类型的常量的数组。 |
public static final UploadDataType FORM_URL_ENCODED
application/x-www-form-urlencoded
Content-Type.
public static final UploadDataType MULTIPART_FORM_DATA
multipart/form-data
Content-Type.
public static final UploadDataType PLAIN_TEXT
text/plain
Content-Type.
public static final UploadDataType BYTES
public static UploadDataType[] values()
for (UploadDataType c : UploadDataType.values()) System.out.println(c);
public static UploadDataType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
-要返回的枚举常量的名称。
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified name
java.lang.NullPointerException
- if the argument is null