|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.cookie.CookieSpecRegistry
Registry.
@Contract(threading=SAFE) @Deprecated public final class CookieSpecRegistry
Cookie specification registry that can be used to obtain the corresponding cookie specification implementation for a given type of type or version of cookie.
| Constructor Summary | |
|---|---|
CookieSpecRegistry()
Deprecated. |
|
| Method Summary | |
|---|---|
CookieSpec |
getCookieSpec(String name)
Deprecated. Gets the cookie specification with the given name. |
CookieSpec |
getCookieSpec(String name,
org.apache.http.params.HttpParams params)
Deprecated. Gets the cookie specification with the given ID. |
List<String> |
getSpecNames()
Deprecated. Obtains a list containing the names of all registered cookie
specs. |
CookieSpecProvider |
lookup(String name)
Deprecated. |
void |
register(String name,
CookieSpecFactory factory)
Deprecated. Registers a CookieSpecFactory with the given identifier. |
void |
setItems(Map<String,CookieSpecFactory> map)
Deprecated. Populates the internal collection of registered cookie
specs with the content of the map passed as a parameter. |
void |
unregister(String id)
Deprecated. Unregisters the CookieSpecFactory with the given ID. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CookieSpecRegistry()
| Method Detail |
|---|
public void register(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(String id)
CookieSpecFactory with the given ID.
id - the identifier of the cookie specification to unregister
public CookieSpec getCookieSpec(String name,
org.apache.http.params.HttpParams params)
throws IllegalStateException
cookie specification with the given ID.
name - the cookie specification identifierparams - the HTTP parameters for the cookie
specification.
cookie specification
IllegalStateException - if a policy with the given name cannot be found
public CookieSpec getCookieSpec(String name)
throws IllegalStateException
cookie specification with the given name.
name - the cookie specification identifier
cookie specification
IllegalStateException - if a policy with the given name cannot be foundpublic List<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(Map<String,CookieSpecFactory> map)
cookie
specs with the content of the map passed as a parameter.
map - cookie specspublic CookieSpecProvider lookup(String name)
lookup in interface org.apache.http.config.Lookup<CookieSpecProvider>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||