| java.lang.Object org.restlet.data.Parameter org.restlet.data.Cookie org.restlet.data.CookieSetting
CookieSetting | final public class CookieSetting extends Cookie (Code) | | Cookie setting provided by a server.
author: Jerome Louvel (contact@noelios.com) |
Method Summary | |
public boolean | equals(Object obj) | public String | getComment() Returns the comment for the user. | public String | getDescription() Returns the description of this REST element. | public int | getMaxAge() Returns the maximum age in seconds. Use 0 to immediately discard an
existing cookie. Use -1 to discard the cookie at the end of the
session (default). | public int | hashCode() | public boolean | isSecure() Indicates if cookie should only be transmitted by secure means. | public void | setComment(String comment) Sets the comment for the user. | public void | setMaxAge(int maxAge) Sets the maximum age in seconds. Use 0 to immediately discard an
existing cookie. Use -1 to discard the cookie at the end of the
session (default). | public void | setSecure(boolean secure) Indicates if cookie should only be transmitted by secure means. |
CookieSetting | public CookieSetting()(Code) | | Default constructor.
|
CookieSetting | public CookieSetting(int version, String name, String value)(Code) | | Preferred constructor.
Parameters: version - The cookie's version. Parameters: name - The cookie's name. Parameters: value - The cookie's value. |
CookieSetting | public CookieSetting(int version, String name, String value, String path, String domain)(Code) | | Preferred constructor.
Parameters: version - The cookie's version. Parameters: name - The cookie's name. Parameters: value - The cookie's value. Parameters: path - The cookie's path. Parameters: domain - The cookie's domain name. |
CookieSetting | public CookieSetting(String name, String value)(Code) | | Preferred constructor.
Parameters: name - The cookie's name. Parameters: value - The cookie's value. |
getComment | public String getComment()(Code) | | Returns the comment for the user.
The comment for the user. |
getDescription | public String getDescription()(Code) | | Returns the description of this REST element.
The description of this REST element. |
getMaxAge | public int getMaxAge()(Code) | | Returns the maximum age in seconds. Use 0 to immediately discard an
existing cookie. Use -1 to discard the cookie at the end of the
session (default).
The maximum age in seconds. |
hashCode | public int hashCode()(Code) | |
|
isSecure | public boolean isSecure()(Code) | | Indicates if cookie should only be transmitted by secure means.
True if cookie should only be transmitted by secure means. |
setComment | public void setComment(String comment)(Code) | | Sets the comment for the user.
Parameters: comment - The comment for the user. |
setMaxAge | public void setMaxAge(int maxAge)(Code) | | Sets the maximum age in seconds. Use 0 to immediately discard an
existing cookie. Use -1 to discard the cookie at the end of the
session (default).
Parameters: maxAge - The maximum age in seconds. |
setSecure | public void setSecure(boolean secure)(Code) | | Indicates if cookie should only be transmitted by secure means.
Parameters: secure - True if cookie should only be transmitted by secure means. |
|
|