@Contract(threading=IMMUTABLE) public class RFC2109VersionHandler extends AbstractCookieAttributeHandler implements CommonCookieAttributeHandler
Constructor and Description |
---|
RFC2109VersionHandler() |
Modifier and Type | Method and Description |
---|---|
String |
getAttributeName() |
void |
parse(SetCookie cookie,
String value)
Parse the given cookie attribute value and update the corresponding
Cookie property. |
void |
validate(Cookie cookie,
CookieOrigin origin)
Peforms cookie validation for the given attribute value.
|
match
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
match
public void parse(SetCookie cookie, String value) throws MalformedCookieException
CookieAttributeHandler
Cookie
property.parse
in interface CookieAttributeHandler
cookie
- Cookie
to be updatedvalue
- cookie attribute value from the cookie response headerMalformedCookieException
public void validate(Cookie cookie, CookieOrigin origin) throws MalformedCookieException
CookieAttributeHandler
validate
in interface CookieAttributeHandler
validate
in class AbstractCookieAttributeHandler
cookie
- Cookie
to validateorigin
- the cookie source to validate againstMalformedCookieException
- if cookie validation fails for this attributepublic String getAttributeName()
getAttributeName
in interface CommonCookieAttributeHandler
Copyright © 1999–2022 The Apache Software Foundation. All rights reserved.