Class HttpPostBodyUtil
java.lang.Object
org.jboss.netty.handler.codec.http.multipart.HttpPostBodyUtil
Shared Static object between HttpMessageDecoder, HttpPostRequestDecoder and HttpPostRequestEncoder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
Exception when NO Backend Array is found(package private) static class
This class intends to decrease the CPU in seeking ahead some bytes in HttpPostRequestDecoderstatic enum
Allowed mechanism for multipart mechanism := "7bit" / "8bit" / "binary" Not allowed: "quoted-printable" / "base64" -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Content-disposition value for file attachment.static final int
static final String
HTTP content disposition header name.static final String
Default Content-Type in binary formstatic final String
Default Content-Type in Text formstatic final String
Content-disposition value for file attachment.static final String
static final String
Content-disposition value for form data.static final Charset
Charset for 8BITstatic final String
HTTP content type body attribute for multiple uploads.static final String
static final Charset
Charset for 7BIT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static int
Find the end of String(package private) static int
findNonWhitespace
(String sb, int offset) Find the first non whitespace(package private) static int
findWhitespace
(String sb, int offset) Find the first whitespace
-
Field Details
-
chunkSize
public static final int chunkSize- See Also:
-
CONTENT_DISPOSITION
HTTP content disposition header name.- See Also:
-
NAME
- See Also:
-
FILENAME
- See Also:
-
FORM_DATA
Content-disposition value for form data.- See Also:
-
ATTACHMENT
Content-disposition value for file attachment.- See Also:
-
FILE
Content-disposition value for file attachment.- See Also:
-
MULTIPART_MIXED
HTTP content type body attribute for multiple uploads.- See Also:
-
ISO_8859_1
Charset for 8BIT -
US_ASCII
Charset for 7BIT -
DEFAULT_BINARY_CONTENT_TYPE
Default Content-Type in binary form- See Also:
-
DEFAULT_TEXT_CONTENT_TYPE
Default Content-Type in Text form- See Also:
-
-
Constructor Details
-
HttpPostBodyUtil
private HttpPostBodyUtil()
-
-
Method Details
-
findNonWhitespace
Find the first non whitespace- Returns:
- the rank of the first non whitespace
-
findWhitespace
Find the first whitespace- Returns:
- the rank of the first whitespace
-
findEndOfString
Find the end of String- Returns:
- the rank of the end of string
-