Class ThrottledFetcher.OurBasicCookieStore
- java.lang.Object
-
- org.apache.manifoldcf.crawler.connectors.webcrawler.ThrottledFetcher.OurBasicCookieStore
-
- All Implemented Interfaces:
java.io.Serializable,org.apache.http.client.CookieStore
- Enclosing class:
- ThrottledFetcher
protected static class ThrottledFetcher.OurBasicCookieStore extends java.lang.Object implements org.apache.http.client.CookieStore, java.io.Serializable- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description OurBasicCookieStore()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCookie(org.apache.http.cookie.Cookie cookie)Adds anHTTP cookie, replacing any existing equivalent cookies.voidaddCookies(org.apache.http.cookie.Cookie[] cookies)Adds an array ofHTTP cookies.voidclear()Clears all cookies.booleanclearExpired(java.util.Date date)Removes all ofcookiesin this HTTP state that have expired by the specifieddate.java.util.List<org.apache.http.cookie.Cookie>getCookies()Returns an immutable array ofcookiesthat this HTTP state currently contains.java.lang.StringtoString()
-
-
-
Method Detail
-
addCookie
public void addCookie(org.apache.http.cookie.Cookie cookie)
Adds anHTTP 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.- Specified by:
addCookiein interfaceorg.apache.http.client.CookieStore- Parameters:
cookie- thecookieto be added- See Also:
addCookies(Cookie[])
-
addCookies
public void addCookies(org.apache.http.cookie.Cookie[] cookies)
Adds an array ofHTTP 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.- Parameters:
cookies- thecookiesto be added- See Also:
addCookie(Cookie)
-
getCookies
public java.util.List<org.apache.http.cookie.Cookie> getCookies()
Returns an immutable array ofcookiesthat this HTTP state currently contains.- Specified by:
getCookiesin interfaceorg.apache.http.client.CookieStore- Returns:
- an array of
cookies.
-
clearExpired
public boolean clearExpired(java.util.Date date)
Removes all ofcookiesin this HTTP state that have expired by the specifieddate.- Specified by:
clearExpiredin interfaceorg.apache.http.client.CookieStore- Returns:
- true if any cookies were purged.
- See Also:
Cookie.isExpired(Date)
-
clear
public void clear()
Clears all cookies.- Specified by:
clearin interfaceorg.apache.http.client.CookieStore
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-