CookieSpecCookieSpecBase@Contract(threading=SAFE) public abstract class AbstractCookieSpec extends java.lang.Object implements CookieSpec
CookieAttributeHandlers.| Modifier | Constructor | Description |
|---|---|---|
|
AbstractCookieSpec() |
Default constructor
|
protected |
AbstractCookieSpec(java.util.HashMap<java.lang.String,CookieAttributeHandler> map) |
|
protected |
AbstractCookieSpec(CommonCookieAttributeHandler... handlers) |
| Modifier and Type | Method | Description |
|---|---|---|
protected CookieAttributeHandler |
findAttribHandler(java.lang.String name) |
Finds an attribute handler
CookieAttributeHandler for the
given attribute. |
protected CookieAttributeHandler |
getAttribHandler(java.lang.String name) |
Gets attribute handler
CookieAttributeHandler for the
given attribute. |
protected java.util.Collection<CookieAttributeHandler> |
getAttribHandlers() |
|
void |
registerAttribHandler(java.lang.String name,
CookieAttributeHandler handler) |
Deprecated.
(4.4) use
AbstractCookieSpec(java.util.HashMap) or
AbstractCookieSpec(org.apache.http.cookie.CommonCookieAttributeHandler...)
constructors instead. |
formatCookies, getVersion, getVersionHeader, match, parse, validatepublic AbstractCookieSpec()
protected AbstractCookieSpec(java.util.HashMap<java.lang.String,CookieAttributeHandler> map)
protected AbstractCookieSpec(CommonCookieAttributeHandler... handlers)
@Deprecated
public void registerAttribHandler(java.lang.String name,
CookieAttributeHandler handler)
AbstractCookieSpec(java.util.HashMap) or
AbstractCookieSpec(org.apache.http.cookie.CommonCookieAttributeHandler...)
constructors instead.protected CookieAttributeHandler findAttribHandler(java.lang.String name)
CookieAttributeHandler for the
given attribute. Returns null if no attribute handler is
found for the specified attribute.name - attribute name. e.g. Domain, Path, etc.nullprotected CookieAttributeHandler getAttribHandler(java.lang.String name)
CookieAttributeHandler for the
given attribute.name - attribute name. e.g. Domain, Path, etc.java.lang.IllegalStateException - if handler not found for the
specified attribute.protected java.util.Collection<CookieAttributeHandler> getAttribHandlers()