Enum Class BodyType

java.lang.Object
java.lang.Enum<BodyType>
com.renomad.minum.web.BodyType
All Implemented Interfaces:
Serializable, Comparable<BodyType>, Constable

public enum BodyType extends Enum<BodyType>
The type of HTTP request body
  • Enum Constant Details

    • UNRECOGNIZED

      public static final BodyType UNRECOGNIZED
      a body exists but does not correspond to any known encoding
    • NONE

      public static final BodyType NONE
      Indicates there is no body
    • FORM_URL_ENCODED

      public static final BodyType FORM_URL_ENCODED
      key-value pairs joined by ampersands, with the values encoded using URL encoding, also known as percent encoding. Look up application/x-www-form-urlencoded
    • MULTIPART

      public static final BodyType MULTIPART
      Splits up the content into partitions separated by a boundary value that is specified by sender. Look up multipart/form-data
  • Method Details

    • values

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