@Contract(threading=IMMUTABLE) public class RFC2965VersionAttributeHandler extends Object implements CommonCookieAttributeHandler
"Version" RFC 2965 cookie规范的cookie属性处理程序。
| Constructor and Description |
|---|
RFC2965VersionAttributeHandler() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttributeName() |
boolean |
match(Cookie cookie, CookieOrigin origin)
与给定的值(要求提交的目标主机的属性)匹配相应的cookie属性。
|
void |
parse(SetCookie cookie, String value)
解析cookie版本属性。
|
void |
validate(Cookie cookie, CookieOrigin origin)
验证cookie版本属性。
|
public void parse(SetCookie cookie, String value) throws MalformedCookieException
parse在界面
CookieAttributeHandler
cookie - Cookie待更新
value - cookie响应头中的cookie属性值
MalformedCookieException
public void validate(Cookie cookie, CookieOrigin origin) throws MalformedCookieException
validate在界面
CookieAttributeHandler
cookie - Cookie验证
origin - 要验证的Cookie来源
MalformedCookieException - 如果cookie验证失败此属性
public boolean match(Cookie cookie, CookieOrigin origin)
CookieAttributeHandler复制
match在界面
CookieAttributeHandler
cookie - Cookie匹配
origin - 与Cookie匹配的Cookie来源
true如果比赛成功;
false否则
public String getAttributeName()
getAttributeName在接口
CommonCookieAttributeHandler
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.