Example usage for Java javax.servlet.http Cookie fields, constructors, methods, implement or subclass
The text is from its open source code.
String | value |
boolean | isHttpOnly |
Cookie(String name, String value) Constructs a cookie with the specified name and value. |
Object | clone() Overrides the standard java.lang.Object.clone method to return a copy of this Cookie. |
String | getComment() Returns the comment describing the purpose of this cookie, or null if the cookie has no comment. |
String | getDomain() Gets the domain name of this Cookie. |
int | getMaxAge() Gets the maximum age in seconds of this Cookie. |
String | getName() Returns the name of the cookie. |
String | getPath() Returns the path on the server to which the browser returns this cookie. |
boolean | getSecure() Returns true if the browser is sending cookies only over a secure protocol, or false if the browser can send cookies using any protocol. |
String | getValue() Gets the current value of this Cookie. |
int | getVersion() Returns the version of the protocol this cookie complies with. |
void | setComment(String purpose) Specifies a comment that describes a cookie's purpose. |
void | setDomain(String domain) Specifies the domain within which this cookie should be presented. |
void | setHttpOnly(boolean isHttpOnly) Marks or unmarks this Cookie as HttpOnly. |
void | setMaxAge(int expiry) Sets the maximum age in seconds for this Cookie. |
void | setPath(String uri) Specifies a path for the cookie to which the client should return the cookie. |
void | setSecure(boolean flag) Indicates to the browser whether the cookie should only be sent using a secure protocol, such as HTTPS or SSL. |
void | setValue(String newValue) Assigns a new value to this Cookie. |
void | setVersion(int v) Sets the version of the cookie protocol that this Cookie complies with. |
String | toString() Returns a string representation of the object. |