public class SimpleCookieManager extends java.lang.Object implements CookieManager
| Modifier and Type | Field and Description |
|---|---|
protected com.google.common.collect.Multiset<GoogleGDataRequest.GoogleCookie> |
cookies
Storage for a set of cookies.
|
protected boolean |
cookiesEnabled
Indicates whether cookie handling is enabled.
|
| Constructor and Description |
|---|
SimpleCookieManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCookie(GoogleGDataRequest.GoogleCookie cookie)
Adds a new GoogleCookie instance to the cache.
|
void |
clearCookies()
Clears all cookies.
|
boolean |
cookiesEnabled()
Returns
true if the GoogleService is handling cookies. |
java.util.Set<GoogleGDataRequest.GoogleCookie> |
getCookies()
Returns the set of associated cookies returned by previous requests.
|
void |
setCookiesEnabled(boolean cookiesEnabled)
Enables or disables cookie handling.
|
protected com.google.common.collect.Multiset<GoogleGDataRequest.GoogleCookie> cookies
protected boolean cookiesEnabled
public void setCookiesEnabled(boolean cookiesEnabled)
CookieManagersetCookiesEnabled in interface CookieManagerpublic boolean cookiesEnabled()
CookieManagertrue if the GoogleService is handling cookies.cookiesEnabled in interface CookieManagerpublic void clearCookies()
CookieManagerclearCookies in interface CookieManagerpublic void addCookie(GoogleGDataRequest.GoogleCookie cookie)
CookieManageraddCookie in interface CookieManagerpublic java.util.Set<GoogleGDataRequest.GoogleCookie> getCookies()
CookieManagergetCookies in interface CookieManager