Class HtmlUnitBrowserCompatCookieSpec
java.lang.Object
org.apache.http.impl.cookie.AbstractCookieSpec
org.apache.http.impl.cookie.CookieSpecBase
org.htmlunit.httpclient.HtmlUnitBrowserCompatCookieSpec
- All Implemented Interfaces:
org.apache.http.cookie.CookieSpec
public class HtmlUnitBrowserCompatCookieSpec
extends org.apache.http.impl.cookie.CookieSpecBase
Customized BrowserCompatSpec for HtmlUnit.
Workaround for HttpClient bug 1006: quotes are wrongly removed in cookie's values. Implementation is based on the HttpClient code.
- Author:
- Mike Bowler, Noboru Sinohara, David D. Kilzer, Marc Guillemot, Brad Clarke, Ahmed Ashour, Nicolas Belisle, Ronald Brill, John J Murdoch
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.http.impl.cookie.CookieSpecBase
getDefaultDomain, getDefaultPath, match, parse, validateMethods inherited from class org.apache.http.impl.cookie.AbstractCookieSpec
findAttribHandler, getAttribHandler, getAttribHandlers, registerAttribHandler
-
Field Details
-
EMPTY_COOKIE_NAME
The cookie name used for cookies with no name (HttpClient doesn't like empty names).- See Also:
-
LOCAL_FILESYSTEM_DOMAIN
-
-
Constructor Details
-
HtmlUnitBrowserCompatCookieSpec
Constructor.- Parameters:
browserVersion- theBrowserVersionto simulate
-
-
Method Details
-
parse
public List<org.apache.http.cookie.Cookie> parse(org.apache.http.Header header, org.apache.http.cookie.CookieOrigin origin) throws org.apache.http.cookie.MalformedCookieException - Throws:
org.apache.http.cookie.MalformedCookieException
-
formatCookies
-
getVersion
public int getVersion() -
getVersionHeader
public org.apache.http.Header getVersionHeader() -
toString
-