public static class GoogleGDataRequest.GoogleCookie
extends java.lang.Object
Constructor and Description |
---|
GoogleGDataRequest.GoogleCookie(java.net.URI uri,
java.lang.String cookieHeader)
Constructs a new GoogleCookie instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.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. |
java.lang.String |
getDomain() |
java.util.Date |
getExpires() |
java.lang.String |
getName() |
java.lang.String |
getPath() |
boolean |
hasExpired()
Returns
true if the cookie has expired. |
int |
hashCode() |
boolean |
matches(java.net.URI uri)
Returns
true if the cookie hasn't expired, the
URI domain matches, and the URI path starts with the
cookie path. |
java.lang.String |
toString() |
public GoogleGDataRequest.GoogleCookie(java.net.URI uri, java.lang.String cookieHeader)
uri
- the original request URI that returned Set-Cookie header
in the responsecookieHeader
- the value of the Set-Cookie header.public java.lang.String getDomain()
public java.lang.String getPath()
public java.lang.String getName()
public java.util.Date getExpires()
public boolean hasExpired()
true
if the cookie has expired.public boolean matches(java.net.URI uri)
true
if the cookie hasn't expired, the
URI domain matches, and the URI path starts with the
cookie path.uri
- URI to check againstpublic boolean equals(java.lang.Object o)
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.equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object