public class CustomCookieStore
extends java.lang.Object
implements java.net.CookieStore
| Constructor and Description |
|---|
CustomCookieStore()
The default ctor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.net.URI uri,
java.net.HttpCookie cookie)
Add one cookie into cookie store.
|
java.util.List<java.net.HttpCookie> |
get(java.net.URI uri)
Get all cookies, which: 1) given uri domain-matches with, or, associated with
given uri when added to the cookie store. 3) not expired.
|
java.util.List<java.net.HttpCookie> |
getCookies()
Get all cookies in cookie store, except those have expired
|
java.util.List<java.net.URI> |
getURIs()
Get all URIs, which are associated with at least one cookie of this cookie
store.
|
boolean |
remove(java.net.URI uri,
java.net.HttpCookie ck)
Remove a cookie from store
|
boolean |
removeAll()
Remove all cookies in this cookie store.
|
public void add(java.net.URI uri,
java.net.HttpCookie cookie)
add in interface java.net.CookieStorepublic java.util.List<java.net.HttpCookie> get(java.net.URI uri)
get in interface java.net.CookieStorepublic java.util.List<java.net.HttpCookie> getCookies()
getCookies in interface java.net.CookieStorepublic java.util.List<java.net.URI> getURIs()
getURIs in interface java.net.CookieStorepublic boolean remove(java.net.URI uri,
java.net.HttpCookie ck)
remove in interface java.net.CookieStorepublic boolean removeAll()
removeAll in interface java.net.CookieStore