CookieStore
Interface CookieStore
public interface CookieStore
A CookieStore object represents a storage for cookie. Can store and retrieve cookies.
CookieManager
will call CookieStore-add
to save cookies for every incoming HTTP response, and call CookieStore-get
to retrieve cookie for every outgoing HTTP request- A CookieStore is responsible for removing HttpCookie instances which have expired-
- Since:
- 1-6
Methods
add
void add(URI uri, 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 cook