Methods Summary |
---|
public void | add(java.net.URI uri, java.net.HttpCookie cookie)Adds one HTTP cookie to the store. This is called for every
incoming HTTP response.
A cookie to store may or may not be associated with an URI. If it
is not associated with an URI, the cookie's domain and path attribute
will indicate where it comes from. If it is associated with an URI and
its domain and path attribute are not speicifed, given URI will indicate
where this cookie comes from.
If a cookie corresponding to the given URI already exists,
then it is replaced with the new one.
|
public java.util.List | get(java.net.URI uri)Retrieve cookies associated with given URI, or whose domain matches the
given URI. Only cookies that have not expired are returned.
This is called for every outgoing HTTP request.
|
public java.util.List | getCookies()Get all not-expired cookies in cookie store.
|
public java.util.List | getURIs()Get all URIs which identify the cookies in this cookie store.
|
public boolean | remove(java.net.URI uri, java.net.HttpCookie cookie)Remove a cookie from store.
|
public boolean | removeAll()Remove all cookies in this cookie store.
|