public class

SimpleCookieManager

extends Object
implements CookieManager
java.lang.Object
   ↳ com.google.gdata.client.SimpleCookieManager

Class Overview

A simple cookie manager implementation.

Summary

Fields
protected Multiset<GoogleGDataRequest.GoogleCookie> cookies Storage for a set of cookies.
protected boolean cookiesEnabled Indicates whether cookie handling is enabled.
Public Constructors
SimpleCookieManager()
Public Methods
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.
Set<GoogleGDataRequest.GoogleCookie> getCookies()
Returns the set of associated cookies returned by previous requests.
void setCookiesEnabled(boolean cookiesEnabled)
Enables or disables cookie handling.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gdata.client.CookieManager

Fields

protected Multiset<GoogleGDataRequest.GoogleCookie> cookies

Storage for a set of cookies.

protected boolean cookiesEnabled

Indicates whether cookie handling is enabled.

Public Constructors

public SimpleCookieManager ()

Public Methods

public void addCookie (GoogleGDataRequest.GoogleCookie cookie)

Adds a new GoogleCookie instance to the cache.

Parameters
cookie

public void clearCookies ()

Clears all cookies.

public boolean cookiesEnabled ()

Returns true if the GoogleService is handling cookies.

public Set<GoogleGDataRequest.GoogleCookie> getCookies ()

Returns the set of associated cookies returned by previous requests.

public void setCookiesEnabled (boolean cookiesEnabled)

Enables or disables cookie handling.

Parameters
cookiesEnabled