@Contract(threading=SAFE) public abstract class CookieSpecBase extends AbstractCookieSpec
| Constructor and Description |
|---|
CookieSpecBase() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
match(Cookie cookie,
CookieOrigin origin)
Determines if a Cookie matches the target location.
|
void |
validate(Cookie cookie,
CookieOrigin origin)
Validate the cookie according to validation rules defined by the
cookie specification.
|
registerAttribHandlerequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitformatCookies, getVersion, getVersionHeader, parsepublic 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 againsttrue if the cookie should be submitted with a request
with given attributes, false otherwise.Copyright © 2010 - 2020 Adobe. All Rights Reserved