public class Cookie
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDomain()
Returns the domain to which this cookie may be sent.
|
long |
getExpiredTime() |
java.lang.String |
getName()
Returns the name of this cookie.
|
java.lang.String |
getPath()
Returns the path to which this cookie is restricted.
|
java.lang.String |
getValue()
Returns the value associated with this cookie.
|
int |
hashCode() |
boolean |
isExpired()
check whether the cookie is expired
|
boolean |
mayBeSentTo(java.net.URL url)
may this cookie be sent to the given url?
|
void |
setValue(java.lang.String value)
Sets the value associated with this cookie.
|
public long getExpiredTime()
public java.lang.String getName()
public java.lang.String getValue()
public void setValue(java.lang.String value)
public java.lang.String getPath()
public java.lang.String getDomain()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean isExpired()
public boolean mayBeSentTo(java.net.URL url)
url
- - the unform resource locator to check