public interface HeaderValueFormatter
Modifier and Type | Method and Description |
---|---|
void |
formatElements(CharArrayBuffer buffer,
HeaderElement[] elems,
boolean quote)
Formats an array of header elements.
|
void |
formatHeaderElement(CharArrayBuffer buffer,
HeaderElement elem,
boolean quote)
Formats one header element.
|
void |
formatNameValuePair(CharArrayBuffer buffer,
NameValuePair nvp,
boolean quote)
Formats one name-value pair, where the value is optional.
|
void |
formatParameters(CharArrayBuffer buffer,
NameValuePair[] nvps,
boolean quote)
Formats the parameters of a header element.
|
void formatElements(CharArrayBuffer buffer, HeaderElement[] elems, boolean quote)
buffer
- buffer to write formatted content to.elems
- the header elements to formatquote
- true
to always format with quoted values,
false
to use quotes only when necessaryvoid formatHeaderElement(CharArrayBuffer buffer, HeaderElement elem, boolean quote)
buffer
- buffer to write formatted content to.elem
- the header element to formatquote
- true
to always format with quoted values,
false
to use quotes only when necessaryvoid formatParameters(CharArrayBuffer buffer, NameValuePair[] nvps, boolean quote)
buffer
- buffer to write formatted content to.nvps
- the parameters (name-value pairs) to formatquote
- true
to always format with quoted values,
false
to use quotes only when necessaryvoid formatNameValuePair(CharArrayBuffer buffer, NameValuePair nvp, boolean quote)
buffer
- buffer to write formatted content to.nvp
- the name-value pair to formatquote
- true
to always format with a quoted value,
false
to use quotes only when necessaryCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.