@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)
解析给定的cookie属性值并更新对应的 Cookie属性。
|
void |
validate(Cookie cookie, CookieOrigin origin)
对给定的属性值进行Peforms cookie验证。
|
matchclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmatchpublic void parse(SetCookie cookie, String value) throws MalformedCookieException
CookieAttributeHandler复制
Cookie属性。
parse在界面
CookieAttributeHandler
cookie - Cookie待更新
value - 来自cookie响应头的cookie属性值
MalformedCookieException
public void validate(Cookie cookie, CookieOrigin origin) throws MalformedCookieException
CookieAttributeHandler复制
validate在界面
CookieAttributeHandler
validate在
AbstractCookieAttributeHandler
cookie - Cookie验证
origin - 要验证的Cookie来源
MalformedCookieException - 如果cookie验证失败此属性
public String getAttributeName()
getAttributeName在接口
CommonCookieAttributeHandler
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.