Enum Class HttpContentTypeEnum

java.lang.Object
java.lang.Enum<HttpContentTypeEnum>
com.luna.common.net.HttpContentTypeEnum
All Implemented Interfaces:
Serializable, Comparable<HttpContentTypeEnum>, java.lang.constant.Constable

public enum HttpContentTypeEnum extends Enum<HttpContentTypeEnum>
Author:
luna 2021/8/13
  • Enum Constant Details

    • CONTENT_TYPE_JSON

      public static final HttpContentTypeEnum CONTENT_TYPE_JSON
      JSON
    • CONTENT_TYPE_X_WWW_FORM_URLENCODED

      public static final HttpContentTypeEnum CONTENT_TYPE_X_WWW_FORM_URLENCODED
      form-urlencoded
    • CONTENT_TYPE_FORM_DATA

      public static final HttpContentTypeEnum CONTENT_TYPE_FORM_DATA
      form-data
    • CONTENT_TYPE_APPLICATION_FORM_DATA_UTF8

      public static final HttpContentTypeEnum CONTENT_TYPE_APPLICATION_FORM_DATA_UTF8
      application/form-data/utf-8
    • CONTENT_TYPE_APPLICATION_FORM_DATA

      public static final HttpContentTypeEnum CONTENT_TYPE_APPLICATION_FORM_DATA
      application/form-data
    • CONTENT_TYPE_MSEXCEL

      public static final HttpContentTypeEnum CONTENT_TYPE_MSEXCEL
      msexcel
    • CONTENT_TYPE_TEXT

      public static final HttpContentTypeEnum CONTENT_TYPE_TEXT
      text
    • CONTENT_OCTET_STREAM

      public static final HttpContentTypeEnum CONTENT_OCTET_STREAM
      octet-stream
  • Method Details

    • values

      public static HttpContentTypeEnum[] 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

      public static HttpContentTypeEnum valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getCode

      public Integer getCode()
    • setCode

      public void setCode(Integer code)
    • getKey

      public String getKey()
    • setKey

      public void setKey(String key)
    • getValue

      public String getValue()
    • setValue

      public void setValue(String value)