@Contract(threading=SAFE) public abstract class AbstractCookieSpec extends Object implements CookieSpec
CookieAttributeHandler 。
| Modifier | Constructor and Description |
|---|---|
|
AbstractCookieSpec()
默认构造函数
|
protected |
AbstractCookieSpec(CommonCookieAttributeHandler... handlers) |
protected |
AbstractCookieSpec(HashMap<String,CookieAttributeHandler> map) |
| Modifier and Type | Method and Description |
|---|---|
protected CookieAttributeHandler |
findAttribHandler(String name)
找到给定属性的属性处理程序 CookieAttributeHandler 。
|
protected CookieAttributeHandler |
getAttribHandler(String name)
获取给定属性的属性处理程序 CookieAttributeHandler 。
|
protected Collection<CookieAttributeHandler> |
getAttribHandlers() |
void |
registerAttribHandler(String name, CookieAttributeHandler handler)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitformatCookies, getVersion, getVersionHeader, match, parse, validatepublic AbstractCookieSpec()
protected AbstractCookieSpec(HashMap<String,CookieAttributeHandler> map)
protected AbstractCookieSpec(CommonCookieAttributeHandler... handlers)
@Deprecated public void registerAttribHandler(String name, CookieAttributeHandler handler)
protected CookieAttributeHandler findAttribHandler(String name)
CookieAttributeHandler 。
如果没有为指定的属性找到属性处理程序,则返回null 。
name - 属性名称。
例如域,路径等
null
protected CookieAttributeHandler getAttribHandler(String name)
CookieAttributeHandler 。
name - 属性名称。
例如域,路径等
IllegalStateException - if handler not found for the specified attribute.
protected Collection<CookieAttributeHandler> getAttribHandlers()
Copyright © 1999–2017 The Apache Software Foundation. All rights reserved.