Enum Class HttpRequest.ConvertedBodyType

java.lang.Object
java.lang.Enum<HttpRequest.ConvertedBodyType>
org.mockserver.model.HttpRequest.ConvertedBodyType
All Implemented Interfaces:
Serializable, Comparable<HttpRequest.ConvertedBodyType>, Constable
Enclosing class:
HttpRequest

public static enum HttpRequest.ConvertedBodyType extends Enum<HttpRequest.ConvertedBodyType>
Identifies a memoizable body-conversion target. The conversion result depends only on the request body and this target type, so it is safe to cache per request keyed on this value.
  • Enum Constant Details

  • Method Details

    • values

      public static HttpRequest.ConvertedBodyType[] 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 HttpRequest.ConvertedBodyType 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