|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gdata.client.http.GoogleGDataRequest.GoogleCookie
public static class GoogleGDataRequest.GoogleCookie
Google cookie.
| Constructor Summary | |
|---|---|
GoogleGDataRequest.GoogleCookie(java.net.URI uri,
java.lang.String cookieHeader)
Constructs a new GoogleCookie instance. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
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 against
public 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.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||