| java.lang.Object edu.indiana.lib.twinpeaks.util.CookieData
CookieData | public class CookieData (Code) | | Represent a single cookie
|
EXPIRED_AGE | final public static int EXPIRED_AGE(Code) | | Expired cookie
|
NULL_AGE | final public static int NULL_AGE(Code) | | Null (unset) cookie age
|
CookieData | public CookieData(URL url, String key, String value)(Code) | | Constructor
Parameters: url - URL associated with this cookie Parameters: key - Cookie name Parameters: value - Cookie value |
equals | public boolean equals(CookieData cookie)(Code) | | Equal cookies?
Parameters: cookie - for comparison true if cookie name, path, and domain are all equal |
getDomain | public String getDomain()(Code) | | Get the domain
The domain attribute value (null if none) |
getExpires | public String getExpires()(Code) | | Get the expiration date
The expires attribute value (null if none) |
getMaxAge | public int getMaxAge()(Code) | | Get the maximum age for this cookie
|
getName | public String getName()(Code) | | Get cookie name
The cooke name |
getPath | public String getPath()(Code) | | Get the path
The cooke path attribute value (null if none) |
getSecure | public boolean getSecure()(Code) | | |
getValue | public String getValue()(Code) | | Get cookie value (the cookie "text")
The value |
getVersion | public String getVersion()(Code) | | Get the cookie version
The version (null if none) |
setDomain | public void setDomain(String domain)(Code) | | Save the domain
|
setExpires | public void setExpires(String expires)(Code) | | Save the expiration date
|
setMaxAge | public void setMaxAge(String maxAge)(Code) | | Set the maximum age for this cookie
|
setSecure | public void setSecure(boolean secure)(Code) | | Save security setting (true if cookie to be sent only via HTTPS)
|
setVersion | public void setVersion(String version)(Code) | | Save the version
|
|
|