org.apache.hc.core5.http.message.HeaderValueFormatter implementation.
| Modifier and Type | Field and Description |
|---|---|
| public static final BasicHeaderValueFormatter | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | formatElements(final CharArrayBuffer
buffer to write formatted content to. buffer, final HeaderElement[] the header elements to format elems, final boolean true to always format with quoted values,
false to use quotes only when necessaryImplements org. |
| public void | formatHeaderElement(final CharArrayBuffer
buffer to write formatted content to. buffer, final HeaderElement the header element to format elem, final boolean true to always format with quoted values,
false to use quotes only when necessaryImplements org. |
| public void | formatNameValuePair(final CharArrayBuffer
buffer to write formatted content to. buffer, final NameValuePair the name-value pair to format nvp, final boolean true to always format with a quoted value,
false to use quotes only when necessaryImplements org. |
| public void | formatParameters(final CharArrayBuffer
buffer to write formatted content to. buffer, final NameValuePair[] the parameters (name-value pairs) to format nvps, final boolean true to always format with quoted values,
false to use quotes only when necessaryImplements org. |
| pack-priv void | |
| pack-priv boolean | |
| pack-priv boolean |
| INSTANCE | back to summary |
|---|---|
| public static final BasicHeaderValueFormatter INSTANCE | |
| SEPARATORS | back to summary |
|---|---|
| private static final String SEPARATORS | |
| UNSAFE_CHARS | back to summary |
|---|---|
| private static final String UNSAFE_CHARS | |
| BasicHeaderValueFormatter | back to summary |
|---|---|
| public BasicHeaderValueFormatter() | |
| formatElements | back to summary |
|---|---|
| public void formatElements(final CharArrayBuffer buffer, final HeaderElement[] elems, final boolean quote) Implements org. Doc from org. Formats an array of header elements.
| |
| formatHeaderElement | back to summary |
|---|---|
| public void formatHeaderElement(final CharArrayBuffer buffer, final HeaderElement elem, final boolean quote) Implements org. Doc from org. Formats one header element.
| |
| formatNameValuePair | back to summary |
|---|---|
| public void formatNameValuePair(final CharArrayBuffer buffer, final NameValuePair nvp, final boolean quote) Implements org. Doc from org. Formats one name-value pair, where the value is optional.
| |
| formatParameters | back to summary |
|---|---|
| public void formatParameters(final CharArrayBuffer buffer, final NameValuePair[] nvps, final boolean quote) Implements org. Doc from org. Formats the parameters of a header element. That's a list of name-value pairs, to be separated by semicolons. This method will not generate a leading semicolon.
| |
| formatValue | back to summary |
|---|---|
| pack-priv void formatValue(final CharArrayBuffer buffer, final String value, final boolean quote) | |
| isSeparator | back to summary |
|---|---|
| pack-priv boolean isSeparator(final char ch) | |
| isUnsafe | back to summary |
|---|---|
| pack-priv boolean isUnsafe(final char ch) | |