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.
Parameters:
- uri - the uri this cookie associated with.
if null, this cookie will not be associated
with an URI
- cookie - the cookie to store
Throws:
- NullPointerException - if cookie is null
See Also:
CookieStore.get(java.net.URI)
,