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"
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
value
-
Constructor Summary
Constructors Modifier Constructor Description private
TransferEncodingMechanism(java.lang.String value)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
java.lang.String
value()
static HttpPostBodyUtil.TransferEncodingMechanism
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HttpPostBodyUtil.TransferEncodingMechanism[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BIT7
public static final HttpPostBodyUtil.TransferEncodingMechanism BIT7
Default encoding
-
BIT8
public static final HttpPostBodyUtil.TransferEncodingMechanism BIT8
Short lines but not in ASCII - no encoding
-
BINARY
public static final HttpPostBodyUtil.TransferEncodingMechanism BINARY
Could be long text not in ASCII - no encoding
-
-
Method Detail
-
values
public static HttpPostBodyUtil.TransferEncodingMechanism[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HttpPostBodyUtil.TransferEncodingMechanism c : HttpPostBodyUtil.TransferEncodingMechanism.values()) System.out.println(c);
- 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 namejava.lang.NullPointerException
- if the argument is null
-
value
public java.lang.String value()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<HttpPostBodyUtil.TransferEncodingMechanism>
-
-