Registry.@ThreadSafe @Deprecated public final class CookieSpecRegistry extends java.lang.Object implements Lookup<CookieSpecProvider>
| Constructor and Description |
|---|
CookieSpecRegistry()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
CookieSpec |
getCookieSpec(java.lang.String name)
Deprecated.
Gets the
cookie specification with the given name. |
CookieSpec |
getCookieSpec(java.lang.String name,
HttpParams params)
Deprecated.
Gets the
cookie specification with the given ID. |
java.util.List<java.lang.String> |
getSpecNames()
Deprecated.
Obtains a list containing the names of all registered
cookie
specs. |
CookieSpecProvider |
lookup(java.lang.String name)
Deprecated.
|
void |
register(java.lang.String name,
CookieSpecFactory factory)
Deprecated.
Registers a
CookieSpecFactory with the given identifier. |
void |
setItems(java.util.Map<java.lang.String,CookieSpecFactory> map)
Deprecated.
Populates the internal collection of registered
cookie
specs with the content of the map passed as a parameter. |
void |
unregister(java.lang.String id)
Deprecated.
Unregisters the
CookieSpecFactory with the given ID. |
public void register(java.lang.String name,
CookieSpecFactory factory)
CookieSpecFactory with the given identifier.
If a specification with the given name already exists it will be overridden.
This nameis the same one used to retrieve the CookieSpecFactory
from getCookieSpec(String).name - the identifier for this specificationfactory - the CookieSpecFactory class to registergetCookieSpec(String)public void unregister(java.lang.String id)
CookieSpecFactory with the given ID.id - the identifier of the cookie specification to unregisterpublic CookieSpec getCookieSpec(java.lang.String name, HttpParams params) throws java.lang.IllegalStateException
cookie specification with the given ID.name - the cookie specification identifierparams - the HTTP parameters for the cookie
specification.cookie specificationjava.lang.IllegalStateException - if a policy with the given name cannot be foundpublic CookieSpec getCookieSpec(java.lang.String name) throws java.lang.IllegalStateException
cookie specification with the given name.name - the cookie specification identifiercookie specificationjava.lang.IllegalStateException - if a policy with the given name cannot be foundpublic java.util.List<java.lang.String> getSpecNames()
cookie
specs.
Note that the DEFAULT policy (if present) is likely to be the same
as one of the other policies, but does not have to be.public void setItems(java.util.Map<java.lang.String,CookieSpecFactory> map)
cookie
specs with the content of the map passed as a parameter.map - cookie specspublic CookieSpecProvider lookup(java.lang.String name)
lookup in interface Lookup<CookieSpecProvider>