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)
CookieManager
setCookiesEnabled
in interface CookieManager
public boolean cookiesEnabled()
CookieManager
true
if the GoogleService is handling cookies.cookiesEnabled
in interface CookieManager
public void clearCookies()
CookieManager
clearCookies
in interface CookieManager
public void addCookie(GoogleGDataRequest.GoogleCookie cookie)
CookieManager
addCookie
in interface CookieManager
public java.util.Set<GoogleGDataRequest.GoogleCookie> getCookies()
CookieManager
getCookies
in interface CookieManager