Class HttpPostBodyUtil
- java.lang.Object
-
- org.jboss.netty.handler.codec.http.multipart.HttpPostBodyUtil
-
final class HttpPostBodyUtil extends java.lang.ObjectShared Static object between HttpMessageDecoder, HttpPostRequestDecoder and HttpPostRequestEncoder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classHttpPostBodyUtil.SeekAheadNoBackArrayExceptionException when NO Backend Array is found(package private) static classHttpPostBodyUtil.SeekAheadOptimizeThis class intends to decrease the CPU in seeking ahead some bytes in HttpPostRequestDecoderstatic classHttpPostBodyUtil.TransferEncodingMechanismAllowed mechanism for multipart mechanism := "7bit" / "8bit" / "binary" Not allowed: "quoted-printable" / "base64"
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTACHMENTContent-disposition value for file attachment.static intchunkSizestatic java.lang.StringCONTENT_DISPOSITIONHTTP content disposition header name.static java.lang.StringDEFAULT_BINARY_CONTENT_TYPEDefault Content-Type in binary formstatic java.lang.StringDEFAULT_TEXT_CONTENT_TYPEDefault Content-Type in Text formstatic java.lang.StringFILEContent-disposition value for file attachment.static java.lang.StringFILENAMEstatic java.lang.StringFORM_DATAContent-disposition value for form data.static java.nio.charset.CharsetISO_8859_1Charset for 8BITstatic java.lang.StringMULTIPART_MIXEDHTTP content type body attribute for multiple uploads.static java.lang.StringNAMEstatic java.nio.charset.CharsetUS_ASCIICharset for 7BIT
-
Constructor Summary
Constructors Modifier Constructor Description privateHttpPostBodyUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static intfindEndOfString(java.lang.String sb)Find the end of String(package private) static intfindNonWhitespace(java.lang.String sb, int offset)Find the first non whitespace(package private) static intfindWhitespace(java.lang.String sb, int offset)Find the first whitespace
-
-
-
Field Detail
-
chunkSize
public static final int chunkSize
- See Also:
- Constant Field Values
-
CONTENT_DISPOSITION
public static final java.lang.String CONTENT_DISPOSITION
HTTP content disposition header name.- See Also:
- Constant Field Values
-
NAME
public static final java.lang.String NAME
- See Also:
- Constant Field Values
-
FILENAME
public static final java.lang.String FILENAME
- See Also:
- Constant Field Values
-
FORM_DATA
public static final java.lang.String FORM_DATA
Content-disposition value for form data.- See Also:
- Constant Field Values
-
ATTACHMENT
public static final java.lang.String ATTACHMENT
Content-disposition value for file attachment.- See Also:
- Constant Field Values
-
FILE
public static final java.lang.String FILE
Content-disposition value for file attachment.- See Also:
- Constant Field Values
-
MULTIPART_MIXED
public static final java.lang.String MULTIPART_MIXED
HTTP content type body attribute for multiple uploads.- See Also:
- Constant Field Values
-
ISO_8859_1
public static final java.nio.charset.Charset ISO_8859_1
Charset for 8BIT
-
US_ASCII
public static final java.nio.charset.Charset US_ASCII
Charset for 7BIT
-
DEFAULT_BINARY_CONTENT_TYPE
public static final java.lang.String DEFAULT_BINARY_CONTENT_TYPE
Default Content-Type in binary form- See Also:
- Constant Field Values
-
DEFAULT_TEXT_CONTENT_TYPE
public static final java.lang.String DEFAULT_TEXT_CONTENT_TYPE
Default Content-Type in Text form- See Also:
- Constant Field Values
-
-
Method Detail
-
findNonWhitespace
static int findNonWhitespace(java.lang.String sb, int offset)Find the first non whitespace- Returns:
- the rank of the first non whitespace
-
findWhitespace
static int findWhitespace(java.lang.String sb, int offset)Find the first whitespace- Returns:
- the rank of the first whitespace
-
findEndOfString
static int findEndOfString(java.lang.String sb)
Find the end of String- Returns:
- the rank of the end of string
-
-