|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.http.impl.client.BasicCookieStore
@Contract(threading=SAFE) public class BasicCookieStore
Default implementation of CookieStore
| Constructor Summary | |
|---|---|
BasicCookieStore()
|
|
| Method Summary | |
|---|---|
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)
Removes all of cookies in this HTTP state
that have expired by the specified date. |
List<Cookie> |
getCookies()
Returns an immutable array of cookies that this HTTP
state currently contains. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BasicCookieStore()
| Method Detail |
|---|
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 List<Cookie> getCookies()
cookies that this HTTP
state currently contains.
getCookies in interface CookieStorecookies.public boolean clearExpired(Date date)
cookies in this HTTP state
that have expired by the specified date.
clearExpired in interface CookieStoreCookie.isExpired(Date)public void clear()
clear in interface CookieStorepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||