| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | HttpPostBodyUtil.
This class intends to decrease the CPU in seeking ahead some bytes in HttpPostRequestDecoder |
| public static enum | HttpPostBodyUtil.
Allowed mechanism for multipart mechanism := "7bit" / "8bit" / "binary" Not allowed: "quoted-printable" / "base64" |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final String | DEFAULT_BINARY_CONTENT_TYPE
Default Content-Type in binary form |
| public static final String | DEFAULT_TEXT_CONTENT_TYPE
Default Content-Type in Text form |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static int | Returns: a relative position from index > 0 if delimiter found designing the start of it (including LF or CRLF is asked) or a number < 0 if delimiter is not foundthe buffer to search in buffer, int the index to start from in the buffer index, byte[] the delimiter as byte array delimiter, boolean true if it must be preceded by LF or CRLF, else false precededByLineBreak)Try to find the delimiter, with LF or CRLF in front of it (added as delimiters) if needed |
| pack-priv static int | |
| pack-priv static int | Returns: a relative position from index > 0 if LF or CRLF is found or < 0 if not foundthe buffer to search in buffer, int the index to start from in the buffer index)Try to find last LF or CRLF as Line Breaking |
| pack-priv static int | Returns: a relative position from index > 0 if LF or CRLF is found or < 0 if not foundthe buffer to search in buffer, int the index to start from in the buffer index)Try to find first LF or CRLF as Line Breaking |
| pack-priv static int | Returns: the rank of the first non whitespaceFind the first non whitespace |
| chunkSize | back to summary |
|---|---|
| public static final int chunkSize | |
| DEFAULT_BINARY_CONTENT_TYPE | back to summary |
|---|---|
| public static final String DEFAULT_BINARY_CONTENT_TYPE Default Content-Type in binary form | |
| DEFAULT_TEXT_CONTENT_TYPE | back to summary |
|---|---|
| public static final String DEFAULT_TEXT_CONTENT_TYPE Default Content-Type in Text form | |
| HttpPostBodyUtil | back to summary |
|---|---|
| private HttpPostBodyUtil() | |
| findDelimiter | back to summary |
|---|---|
| pack-priv static int findDelimiter(ByteBuf buffer, int index, byte[] delimiter, boolean precededByLineBreak) Try to find the delimiter, with LF or CRLF in front of it (added as delimiters) if needed
| |
| findEndOfString | back to summary |
|---|---|
| pack-priv static int findEndOfString(String sb) Find the end of String
| |
| findLastLineBreak | back to summary |
|---|---|
| pack-priv static int findLastLineBreak(ByteBuf buffer, int index) Try to find last LF or CRLF as Line Breaking
| |
| findLineBreak | back to summary |
|---|---|
| pack-priv static int findLineBreak(ByteBuf buffer, int index) Try to find first LF or CRLF as Line Breaking
| |
| findNonWhitespace | back to summary |
|---|---|
| pack-priv static int findNonWhitespace(String sb, int offset) Find the first non whitespace
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv ByteBuf | |
| pack-priv byte[] | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int | |
| pack-priv int |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv int | Returns: the value equivalent of raw index to be used in readerIndex(value)raw index of the array (pos in general) index)
|
| pack-priv void | setReadPosition(int
this value will be used as (currentPos - minus) to set
the current readerIndex in the buffer. minus)
|
| buffer | back to summary |
|---|---|
| pack-priv ByteBuf buffer | |
| bytes | back to summary |
|---|---|
| pack-priv byte[] bytes | |
| limit | back to summary |
|---|---|
| pack-priv int limit | |
| origPos | back to summary |
|---|---|
| pack-priv int origPos | |
| pos | back to summary |
|---|---|
| pack-priv int pos | |
| readerIndex | back to summary |
|---|---|
| pack-priv int readerIndex | |
| SeekAheadOptimize | back to summary |
|---|---|
pack-priv SeekAheadOptimize(ByteBuf buffer)
| |
| getReadPosition | back to summary |
|---|---|
pack-priv int getReadPosition(int index)
| |
| setReadPosition | back to summary |
|---|---|
pack-priv void setReadPosition(int minus)
| |
| Modifier and Type | Field and Description |
|---|---|
| public static final HttpPostBodyUtil. | BINARY
Could be long text not in ASCII - no encoding |
| public static final HttpPostBodyUtil. | BIT7
Default encoding |
| public static final HttpPostBodyUtil. | BIT8
Short lines but not in ASCII - no encoding |
| private final String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | toString()
Overrides java. |
| public String | |
| public static HttpPostBodyUtil. | |
| public static HttpPostBodyUtil. |
| BINARY | back to summary |
|---|---|
| public static final HttpPostBodyUtil. Could be long text not in ASCII - no encoding | |
| BIT7 | back to summary |
|---|---|
| public static final HttpPostBodyUtil. Default encoding | |
| BIT8 | back to summary |
|---|---|
| public static final HttpPostBodyUtil. Short lines but not in ASCII - no encoding | |
| value | back to summary |
|---|---|
| private final String value | |
| TransferEncodingMechanism | back to summary |
|---|---|
| private TransferEncodingMechanism(String value) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns the name of this enum constant, as contained in the declaration. This method may be overridden, though it typically isn't necessary or desirable. An enum class should override this method when a more "programmer-friendly" string form exists. | |
| value | back to summary |
|---|---|
| public String value() | |
| valueOf | back to summary |
|---|---|
| public static HttpPostBodyUtil. | |
| values | back to summary |
|---|---|
| public static HttpPostBodyUtil. | |