public interface CookieAttributeHandler
| Modifier and Type | Method and Description |
|---|---|
boolean |
match(Cookie cookie, CookieOrigin origin)
与给定的值(要求提交的目标主机的属性)匹配相应的cookie属性。
|
void |
parse(SetCookie cookie, String value)
解析给定的cookie属性值并更新对应的 Cookie属性。
|
void |
validate(Cookie cookie, CookieOrigin origin)
对给定的属性值进行Peforms cookie验证。
|
void parse(SetCookie cookie, String value) throws MalformedCookieException
Cookie属性。
cookie - Cookie待更新
value - cookie响应头中的cookie属性值
MalformedCookieException
void validate(Cookie cookie, CookieOrigin origin) throws MalformedCookieException
cookie - Cookie验证
origin - 要验证的Cookie来源
MalformedCookieException - 如果cookie验证失败此属性
boolean match(Cookie cookie, CookieOrigin origin)
cookie - Cookie匹配
origin - 与Cookie匹配的Cookie来源
true if the match is successful;
false otherwise
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.