public class HtmlUnitBrowserCompatCookieHeaderValueFormatter
extends org.apache.http.message.BasicHeaderValueFormatter
We use our own class because browsers do not automatically quote version1 cookies
if the value contains special chars.
I guess this is something special for HttpClient because HttpClient also removes
the quotes from cookies (@see HtmlUnitBrowserCompatCookieSpec
)
Modifier and Type | Field and Description |
---|---|
static HtmlUnitBrowserCompatCookieHeaderValueFormatter |
INSTANCE
Single instance as in BasicHeaderValueFormatter.
|
Constructor and Description |
---|
HtmlUnitBrowserCompatCookieHeaderValueFormatter() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isSeparator(char ch)
Overwritten to disable automatic addition of quotes.
|
protected boolean |
isUnsafe(char ch)
Looks like browsers are not doing any escaping.
|
doFormatValue, estimateElementsLen, estimateHeaderElementLen, estimateNameValuePairLen, estimateParametersLen, formatElements, formatElements, formatHeaderElement, formatHeaderElement, formatNameValuePair, formatNameValuePair, formatParameters, formatParameters
public static final HtmlUnitBrowserCompatCookieHeaderValueFormatter INSTANCE
public HtmlUnitBrowserCompatCookieHeaderValueFormatter()
protected boolean isSeparator(char ch)
isSeparator
in class org.apache.http.message.BasicHeaderValueFormatter
protected boolean isUnsafe(char ch)
isUnsafe
in class org.apache.http.message.BasicHeaderValueFormatter
Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.