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 classException when NO Backend Array is found(package private) static classThis class intends to decrease the CPU in seeking ahead some bytes in HttpPostRequestDecoderstatic enumAllowed mechanism for multipart mechanism := "7bit" / "8bit" / "binary" Not allowed: "quoted-printable" / "base64" -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringContent-disposition value for file attachment.static final intstatic final StringHTTP content disposition header name.static final StringDefault Content-Type in binary formstatic final StringDefault Content-Type in Text formstatic final StringContent-disposition value for file attachment.static final Stringstatic final StringContent-disposition value for form data.static final CharsetCharset for 8BITstatic final StringHTTP content type body attribute for multiple uploads.static final Stringstatic final CharsetCharset for 7BIT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static intFind the end of String(package private) static intfindNonWhitespace(String sb, int offset) Find the first non whitespace(package private) static intfindWhitespace(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
-