|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.oaklandsw.http.CookieContainer
Holds a set of cookies.
| Constructor Summary | |
CookieContainer()
|
|
| Method Summary | |
boolean |
add(java.lang.Object o)
|
boolean |
addAll(java.util.Collection c)
|
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()
|
boolean |
contains(java.lang.Object o)
|
boolean |
containsAll(java.util.Collection c)
|
Cookie[] |
getCookies()
Returns an array of cookies that this HTTP state currently
contains. |
boolean |
isEmpty()
|
java.util.Iterator |
iterator()
|
boolean |
purgeExpiredCookies()
Removes all of cookies in this HTTP state that have
expired according to the current system time. |
boolean |
purgeExpiredCookies(java.util.Date date)
Removes all of cookies in this HTTP state that have
expired by the specified date. |
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection c)
|
boolean |
retainAll(java.util.Collection c)
|
int |
size()
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] a)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
equals, hashCode |
| Constructor Detail |
public CookieContainer()
| 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.
cookie - 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 Cookie[] getCookies()
cookies that this HTTP state currently
contains.
cookies.public boolean purgeExpiredCookies()
cookies in this HTTP state that have
expired according to the current system time.
purgeExpiredCookies(java.util.Date)public boolean purgeExpiredCookies(java.util.Date date)
cookies in this HTTP state that have
expired by the specified date.
date - The date to compare against.
Cookie.isExpired(java.util.Date),
purgeExpiredCookies()public int size()
size in interface java.util.Collectionpublic void clear()
clear in interface java.util.Collectionpublic boolean isEmpty()
isEmpty in interface java.util.Collectionpublic java.lang.Object[] toArray()
toArray in interface java.util.Collectionpublic boolean add(java.lang.Object o)
add in interface java.util.Collectionpublic boolean contains(java.lang.Object o)
contains in interface java.util.Collectionpublic boolean remove(java.lang.Object o)
remove in interface java.util.Collectionpublic boolean addAll(java.util.Collection c)
addAll in interface java.util.Collectionpublic boolean containsAll(java.util.Collection c)
containsAll in interface java.util.Collectionpublic boolean removeAll(java.util.Collection c)
removeAll in interface java.util.Collectionpublic boolean retainAll(java.util.Collection c)
retainAll in interface java.util.Collectionpublic java.util.Iterator iterator()
iterator in interface java.util.Collectionpublic java.lang.Object[] toArray(java.lang.Object[] a)
toArray in interface java.util.Collectionpublic java.lang.String toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||