@Contract(threading=IMMUTABLE) public class RFC2965DiscardAttributeHandler extends Object implements CommonCookieAttributeHandler
"Discard"用于RFC 2965 cookie规范的cookie属性处理程序。
| Constructor and Description |
|---|
RFC2965DiscardAttributeHandler() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttributeName() |
boolean |
match(Cookie cookie, CookieOrigin origin)
与给定的值(要求提交的目标主机的属性)匹配相应的cookie属性。
|
void |
parse(SetCookie cookie, String commenturl)
解析给定的cookie属性值并更新对应的 Cookie属性。
|
void |
validate(Cookie cookie, CookieOrigin origin)
对给定的属性值进行Peforms cookie验证。
|
public void parse(SetCookie cookie, String commenturl) throws MalformedCookieException
CookieAttributeHandler复制
Cookie属性。
parse在接口
CookieAttributeHandler
cookie - Cookie待更新
commenturl - 来自cookie响应头的cookie属性值
MalformedCookieException
public void validate(Cookie cookie, CookieOrigin origin) throws MalformedCookieException
CookieAttributeHandler复制
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 in interface
CommonCookieAttributeHandler
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.