Package com.luna.common.net
Enum Class HttpContentTypeEnum
- All Implemented Interfaces:
Serializable
,Comparable<HttpContentTypeEnum>
,java.lang.constant.Constable
- Author:
- luna 2021/8/13
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionoctet-streamapplication/form-dataapplication/form-data/utf-8form-dataJSONmsexceltextform-urlencoded -
Method Summary
Modifier and TypeMethodDescriptiongetCode()
getKey()
getValue()
void
void
void
static HttpContentTypeEnum
Returns the enum constant of this class with the specified name.static HttpContentTypeEnum[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONTENT_TYPE_JSON
JSON -
CONTENT_TYPE_X_WWW_FORM_URLENCODED
form-urlencoded -
CONTENT_TYPE_FORM_DATA
form-data -
CONTENT_TYPE_APPLICATION_FORM_DATA_UTF8
application/form-data/utf-8 -
CONTENT_TYPE_APPLICATION_FORM_DATA
application/form-data -
CONTENT_TYPE_MSEXCEL
msexcel -
CONTENT_TYPE_TEXT
text -
CONTENT_OCTET_STREAM
octet-stream
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getCode
-
setCode
-
getKey
-
setKey
-
getValue
-
setValue
-