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