org.jboss.netty.handler.codec.http2
Enum HttpPostBodyUtil.TransferEncodingMechanism

java.lang.Object
  extended by java.lang.Enum<HttpPostBodyUtil.TransferEncodingMechanism>
      extended by org.jboss.netty.handler.codec.http2.HttpPostBodyUtil.TransferEncodingMechanism
All Implemented Interfaces:
Serializable, Comparable<HttpPostBodyUtil.TransferEncodingMechanism>
Enclosing class:
HttpPostBodyUtil

public static enum HttpPostBodyUtil.TransferEncodingMechanism
extends Enum<HttpPostBodyUtil.TransferEncodingMechanism>

Allowed mechanism for multipart mechanism := "7bit" / "8bit" / "binary" Not allowed: "quoted-printable" / "base64"


Enum Constant Summary
BINARY
          Could be long text not in ASCII - no encoding
BIT7
          Default encoding
BIT8
          Short lines but not in ASCII - no encoding
 
Field Summary
 String value
           
 
Method Summary
 String toString()
           
static HttpPostBodyUtil.TransferEncodingMechanism valueOf(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.
 
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 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

Field Detail

value

public String value
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(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

toString

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


Copyright © 2009-2012 Frederic Bregier. All Rights Reserved.