CookieStore.add

Adds one HTTP cookie to the store. This is called for every incoming HTTP response.

<p>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 specified, given URI will indicate where this cookie comes from.

<p>If a cookie corresponding to the given URI already exists, then it is replaced with the new one.

@param uri the uri this cookie associated with. if {@code null}, this cookie will not be associated with an URI @param cookie the cookie to store

@throws NullPointerException if {@code cookie} is {@code null}

@see #get

interface CookieStore
void
add

Meta