@NotThreadSafe public abstract class CookieSpecBase extends AbstractCookieSpec
| Constructor and Description |
|---|
CookieSpecBase() |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
getDefaultDomain(CookieOrigin origin) |
protected static String |
getDefaultPath(CookieOrigin origin) |
boolean |
match(Cookie cookie,
CookieOrigin origin)
Determines if a Cookie matches the target location.
|
protected List<Cookie> |
parse(HeaderElement[] elems,
CookieOrigin origin) |
void |
validate(Cookie cookie,
CookieOrigin origin)
Validate the cookie according to validation rules defined by the
cookie specification.
|
findAttribHandler, getAttribHandler, getAttribHandlers, registerAttribHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitformatCookies, getVersion, getVersionHeader, parseprotected static String getDefaultPath(CookieOrigin origin)
protected static String getDefaultDomain(CookieOrigin origin)
protected List<Cookie> parse(HeaderElement[] elems, CookieOrigin origin) throws MalformedCookieException
MalformedCookieExceptionpublic void validate(Cookie cookie, CookieOrigin origin) throws MalformedCookieException
CookieSpeccookie - the Cookie to validateorigin - details of the cookie originMalformedCookieException - if the cookie is invalidpublic boolean match(Cookie cookie, CookieOrigin origin)
CookieSpeccookie - the Cookie to be matchedorigin - the target to test againstCopyright © 1999–2013 The Apache Software Foundation. All rights reserved.