| Modifier and Type | Class and Description |
|---|---|
| public static enum | HttpPostBodyUtil.TransferEncodingMechanism
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 |
| private static final ByteProcessor. | LF_PROCESSOR
Processor used to lookup Line Feed chars. |
| 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 | |
| LF_PROCESSOR | back to summary |
|---|---|
| private static final ByteProcessor. Processor used to lookup Line Feed chars. | |
| HttpPostBodyUtil | back to summary |
|---|---|
| private HttpPostBodyUtil() | |
| findDelimiter | back to summary |
|---|---|
| pack-priv static int findDelimiter(Buffer 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(Buffer buffer, int index) Try to find last LF or CRLF as Line Breaking
| |
| findLineBreak | back to summary |
|---|---|
| pack-priv static int findLineBreak(Buffer 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 |
|---|---|
| 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. | |