@Contract(threading=SAFE) public class BasicCookieStore extends Object implements CookieStore, Serializable
CookieStore| Constructor and Description | 
|---|
| BasicCookieStore() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addCookie(Cookie cookie)Adds an  HTTP cookie, replacing any existing equivalent cookies. | 
| void | addCookies(Cookie[] cookies)Adds an array of  HTTP cookies. | 
| void | clear()Clears all cookies. | 
| boolean | clearExpired(Date date) | 
| List<Cookie> | getCookies()Returns an immutable array of  cookiesthat this HTTP
 state currently contains. | 
| String | toString()Returns a string representation of the object. | 
public void addCookie(Cookie cookie)
HTTP cookie, replacing any existing equivalent cookies.
 If the given cookie has already expired it will not be added, but existing
 values will still be removed.addCookie in interface CookieStorecookie - the cookie to be addedaddCookies(Cookie[])public void addCookies(Cookie[] cookies)
HTTP cookies. Cookies are added individually and
 in the given array order. If any of the given cookies has already expired it will
 not be added, but existing values will still be removed.cookies - the cookies to be addedaddCookie(Cookie)public void clear()
clear in interface CookieStorepublic boolean clearExpired(Date date)
clearExpired in interface CookieStoreCookie.isExpired(Date)public List<Cookie> getCookies()
cookies that this HTTP
 state currently contains.getCookies in interface CookieStorecookies.public String toString()
ObjecttoString method returns a
 string that "textually represents" this object. The result should be a concise but informative
 representation that is easy for a person to read. It is recommended that all subclasses override
 this method.
 
 The toString method for class Object returns a string consisting of the name of
 the class of which the object is an instance, the at-sign character `@', and the unsigned
 hexadecimal representation of the hash code of the object. In other words, this method returns a
 string equal to the value of: 
getClass().getName() + '@' + Integer.toHexString(hashCode())