Module java.base
Package java.net

Interface CookieStore


public interfaceCookieStore
A CookieStore object represents a storage for cookie. Can store and retrieve cookies.

CookieManager will callCookieStore.add to save cookies for every incoming HTTP response, and callCookieStore.get to retrieve cookie for every outgoing HTTP request. A CookieStore is responsible for removing HttpCookie instances which have expired.

Since:
1.6