public class SimpleCookieManager extends java.lang.Object implements CookieManager
| 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.
|
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