Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

JavaWorld Daily Brew

The CookieStore



I just stumbled upon this keyword when i was searching
the .net api for Java SE 6 thought it was fun to read

java.net

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.

Think about it how many times have you tried to eat a cookie and never
been able too, now u can with the CookieSTore :P