@Contract(threading=IMMUTABLE) public class BasicSecureHandler extends AbstractCookieAttributeHandler implements CommonCookieAttributeHandler
| Constructor and Description |
|---|
BasicSecureHandler() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttributeName() |
boolean |
match(Cookie cookie, CookieOrigin origin)
与给定的值(要求提交的目标主机的属性)匹配相应的cookie属性。
|
void |
parse(SetCookie cookie, String value)
解析给定的cookie属性值并更新对应的 Cookie属性。
|
validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitvalidatepublic void parse(SetCookie cookie, String value) throws MalformedCookieException
CookieAttributeHandler复制
Cookie属性。
parse在接口
CookieAttributeHandler
cookie - Cookie待更新
value - 来自cookie响应头的cookie属性值
MalformedCookieException
public boolean match(Cookie cookie, CookieOrigin origin)
CookieAttributeHandler复制
match在接口
CookieAttributeHandler
match在
AbstractCookieAttributeHandler
cookie - Cookie匹配
origin - 与Cookie匹配的Cookie来源
true如果比赛成功;
false否则
public String getAttributeName()
getAttributeName在接口
CommonCookieAttributeHandler
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.