@Deprecated @NotThreadSafe public class LocalCookieStore extends Object implements org.apache.http.client.CookieStore, Serializable
CookieStore Initially copied from
HttpComponents Changes: removed synchronization| Constructor and Description |
|---|
LocalCookieStore()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCookie(org.apache.http.cookie.Cookie cookie)
Deprecated.
Adds an
HTTP cookie, replacing any existing equivalent
cookies. |
void |
addCookies(org.apache.http.cookie.Cookie[] cookies)
Deprecated.
Adds an array of
HTTP cookies. |
void |
clear()
Deprecated.
Clears all cookies.
|
boolean |
clearExpired(Date date)
Deprecated.
Removes all of
cookies in this HTTP state that have
expired by the specified date. |
List<org.apache.http.cookie.Cookie> |
getCookies()
Deprecated.
Returns an immutable array of
cookies that this HTTP state
currently contains. |
String |
toString()
Deprecated.
|
public void addCookie(org.apache.http.cookie.Cookie cookie)
HTTP cookie, replacing any existing equivalent
cookies. If the given ookie has already expired it will not be added, but
existing values will still be removed.addCookie in interface org.apache.http.client.CookieStorecookie - the cookie to be addedaddCookies(Cookie[])public void addCookies(org.apache.http.cookie.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<org.apache.http.cookie.Cookie> getCookies()
cookies that this HTTP state
currently contains.getCookies in interface org.apache.http.client.CookieStorecookies.public boolean clearExpired(Date date)
cookies in this HTTP state that have
expired by the specified date.clearExpired in interface org.apache.http.client.CookieStoreCookie.isExpired(Date)public void clear()
clear in interface org.apache.http.client.CookieStoreCopyright © 2009–2016 Crawler-Commons. All rights reserved.