@Immutable public class RFC2109VersionHandler extends AbstractCookieAttributeHandler
| 构造器和说明 |
|---|
RFC2109VersionHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
parse(SetCookie cookie,
java.lang.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, java.lang.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 在接口中 CookieAttributeHandlervalidate 在类中 AbstractCookieAttributeHandlercookie - Cookie to validateorigin - the cookie source to validate againstMalformedCookieException - if cookie validation fails for this attribute