Modifier and Type | Field and Description |
---|---|
private List | |
private Map | |
private ReentrantLock | |
private Map |
Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
public void | add(URI
the uri this cookie associated with.
if uri, HttpCookie null , this cookie will not be associated
with an URIthe cookie to store cookie)Implements java. Add one cookie into cookie store. |
private <T> void | |
public List | get(URI
the uri associated with the cookies to be returned uri)Implements java. Get all cookies, which: 1) given uri domain-matches with, or, associated with given uri when added to the cookie store. |
public List | getCookies()
Implements java. Get all cookies in cookie store, except those have expired |
private URI | |
private void | getInternal1(List<HttpCookie> cookies, Map<String, List<HttpCookie>> cookieIndex, String host, boolean secureLink)
|
private <T> void | getInternal2(List<HttpCookie> cookies, Map<T, List<HttpCookie>> cookieIndex, Comparable<T> comparator, boolean secureLink)
|
public List | getURIs()
Implements java. Get all URIs, which are associated with at least one cookie of this cookie store. |
private boolean | |
public boolean | remove(URI
the uri this cookie associated with.
if uri, HttpCookie null , the cookie to be removed is not associated
with an URI when added; if not null , the cookie
to be removed is associated with the given URI when added.the cookie to remove ck)Implements java. Remove a cookie from store |
public boolean |
cookieJar | back to summary |
---|---|
private List<HttpCookie> cookieJar |
domainIndex | back to summary |
---|---|
private Map<String, List<HttpCookie>> domainIndex |
lock | back to summary |
---|---|
private ReentrantLock lock |
uriIndex | back to summary |
---|---|
private Map<URI, List<HttpCookie>> uriIndex |
InMemoryCookieStore | back to summary |
---|---|
public InMemoryCookieStore() The default ctor |
add | back to summary |
---|---|
public void add(URI uri, HttpCookie cookie) Implements java. Add one cookie into cookie store.
|
addIndex | back to summary |
---|---|
private <T> void addIndex(Map<T, List<HttpCookie>> indexStore, T index, HttpCookie cookie) |
get | back to summary |
---|---|
public List Implements java. Get all cookies, which: 1) given uri domain-matches with, or, associated with given uri when added to the cookie store. 3) not expired. See RFC 2965 sec. 3.3.4 for more detail.
|
getCookies | back to summary |
---|---|
public List Implements java. Get all cookies in cookie store, except those have expired
|
getEffectiveURI | back to summary |
---|---|
private URI getEffectiveURI(URI uri) |
getInternal1 | back to summary |
---|---|
private void getInternal1(List<HttpCookie> cookies, Map<String, List<HttpCookie>> cookieIndex, String host, boolean secureLink) |
getInternal2 | back to summary |
---|---|
private <T> void getInternal2(List<HttpCookie> cookies, Map<T, List<HttpCookie>> cookieIndex, Comparable<T> comparator, boolean secureLink) |
getURIs | back to summary |
---|---|
public List Implements java. Get all URIs, which are associated with at least one cookie of this cookie store.
|
netscapeDomainMatches | back to summary |
---|---|
private boolean netscapeDomainMatches(String domain, String host) |
remove | back to summary |
---|---|
public boolean remove(URI uri, HttpCookie ck) Implements java. Remove a cookie from store
|
removeAll | back to summary |
---|---|
public boolean removeAll() Implements java. Remove all cookies in this cookie store.
|