@Immutable public class RFC2109VersionHandler extends AbstractCookieAttributeHandler
| Constructor and Description |
|---|
RFC2109VersionHandler() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
matchpublic void parse(SetCookie cookie, String value) throws MalformedCookieException
CookieAttributeHandlerCookie property.cookie - Cookie to be updatedvalue - cookie attribute value from the cookie response headerMalformedCookieExceptionpublic void validate(Cookie cookie, CookieOrigin origin) throws MalformedCookieException
CookieAttributeHandlervalidate in interface CookieAttributeHandlervalidate in class AbstractCookieAttributeHandlercookie - Cookie to validateorigin - the cookie source to validate againstMalformedCookieException - if cookie validation fails for this attributeCopyright © 1999–2013 The Apache Software Foundation. All rights reserved.