public class HtmlUnitBrowserCompatCookieSpec
extends org.apache.http.impl.cookie.CookieSpecBase
Workaround for HttpClient bug 1006: quotes are wrongly removed in cookie's values. Implementation is based on the HttpClient code.
| Modifier and Type | Field and Description | 
|---|---|
| static String | EMPTY_COOKIE_NAMEThe cookie name used for cookies with no name (HttpClient doesn't like empty names). | 
| static String | LOCAL_FILESYSTEM_DOMAINWorkaround for domain of local files. | 
| Constructor and Description | 
|---|
| HtmlUnitBrowserCompatCookieSpec(BrowserVersion browserVersion)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| List<org.apache.http.Header> | formatCookies(List<org.apache.http.cookie.Cookie> cookies) | 
| int | getVersion() | 
| org.apache.http.Header | getVersionHeader() | 
| List<org.apache.http.cookie.Cookie> | parse(org.apache.http.Header header,
     org.apache.http.cookie.CookieOrigin origin) | 
| String | toString() | 
getDefaultDomain, getDefaultPath, match, parse, validatepublic static final String EMPTY_COOKIE_NAME
public static final String LOCAL_FILESYSTEM_DOMAIN
public HtmlUnitBrowserCompatCookieSpec(BrowserVersion browserVersion)
browserVersion - the BrowserVersion to simulatepublic List<org.apache.http.cookie.Cookie> parse(org.apache.http.Header header, org.apache.http.cookie.CookieOrigin origin) throws org.apache.http.cookie.MalformedCookieException
org.apache.http.cookie.MalformedCookieExceptionpublic List<org.apache.http.Header> formatCookies(List<org.apache.http.cookie.Cookie> cookies)
public int getVersion()
public org.apache.http.Header getVersionHeader()
Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.