Enum HttpPostBodyUtil.TransferEncodingMechanism

java.lang.Object
java.lang.Enum<HttpPostBodyUtil.TransferEncodingMechanism>
io.netty.handler.codec.http.multipart.HttpPostBodyUtil.TransferEncodingMechanism
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<HttpPostBodyUtil.TransferEncodingMechanism>
Enclosing class:
HttpPostBodyUtil

public static enum HttpPostBodyUtil.TransferEncodingMechanism extends java.lang.Enum<HttpPostBodyUtil.TransferEncodingMechanism>
Allowed mechanism for multipart mechanism := "7bit" / "8bit" / "binary" Not allowed: "quoted-printable" / "base64"
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Could be long text not in ASCII - no encoding
    Default encoding
    Short lines but not in ASCII - no encoding
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final java.lang.String
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    TransferEncodingMechanism(java.lang.String value)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    java.lang.String
     
    java.lang.String
     
    valueOf(java.lang.String name)
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

  • Field Details

    • value

      private final java.lang.String value
  • Constructor Details

    • TransferEncodingMechanism

      private TransferEncodingMechanism(java.lang.String value)
  • Method Details

    • values

      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static HttpPostBodyUtil.TransferEncodingMechanism valueOf(java.lang.String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
      java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
      java.lang.NullPointerException - if the argument is null
    • value

      public java.lang.String value()
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Enum<HttpPostBodyUtil.TransferEncodingMechanism>