public static class

GoogleGDataRequest.GoogleCookie

extends Object
java.lang.Object
   ↳ com.google.gdata.client.http.GoogleGDataRequest.GoogleCookie

Class Overview

Google cookie.

Summary

Fields
private String domain
private Date expires
private String name
private String path
private String value
Public Constructors
GoogleGDataRequest.GoogleCookie(URI uri, String cookieHeader)
Constructs a new GoogleCookie instance.
Public Methods
boolean equals(Object o)
Returns true if the target object is a GoogleCookie that has the same name as this cookie and that matches the same target domain and path as this cookie.
String getDomain()
Date getExpires()
String getName()
String getPath()
boolean hasExpired()
Returns true if the cookie has expired.
int hashCode()
boolean matches(URI uri)
Returns true if the cookie hasn't expired, the URI domain matches, and the URI path starts with the cookie path.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private String domain

private Date expires

private String name

private String path

private String value

Public Constructors

public GoogleGDataRequest.GoogleCookie (URI uri, String cookieHeader)

Constructs a new GoogleCookie instance.

Parameters
uri The original request URI that returned Set-Cookie header in the response
cookieHeader The value of the Set-Cookie header.

Public Methods

public boolean equals (Object o)

Returns true if the target object is a GoogleCookie that has the same name as this cookie and that matches the same target domain and path as this cookie. Cookie expiration and value are not taken into account when considering equivalence.

Parameters
o

public String getDomain ()

public Date getExpires ()

public String getName ()

public String getPath ()

public boolean hasExpired ()

Returns true if the cookie has expired.

public int hashCode ()

public boolean matches (URI uri)

Returns true if the cookie hasn't expired, the URI domain matches, and the URI path starts with the cookie path.

Parameters
uri URI to check against
Returns
  • true if match, false otherwise

public String toString ()