public class HtmlUnitBrowserCompatCookieSpec extends CookieSpecBase
| Modifier and Type | Field and Description |
|---|---|
static String |
EMPTY_COOKIE_NAME
The cookie name used for cookies with no name (HttpClient doesn't like empty names).
|
static String |
LOCAL_FILESYSTEM_DOMAIN
Workaround 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<Cookie> cookies) |
int |
getVersion() |
org.apache.http.Header |
getVersionHeader() |
List<Cookie> |
parse(org.apache.http.Header header,
CookieOrigin origin) |
String |
toString() |
getDefaultDomain, getDefaultPath, match, parse, validatefindAttribHandler, getAttribHandler, getAttribHandlers, registerAttribHandlerpublic static final String EMPTY_COOKIE_NAME
public static final String LOCAL_FILESYSTEM_DOMAIN
public HtmlUnitBrowserCompatCookieSpec(BrowserVersion browserVersion)
browserVersion - the BrowserVersion to simulatepublic List<Cookie> parse(org.apache.http.Header header, CookieOrigin origin) throws MalformedCookieException
MalformedCookieExceptionpublic int getVersion()
public org.apache.http.Header getVersionHeader()
Copyright © 2002–2019 Gargoyle Software Inc.. All rights reserved.