- getName
Returns the name of the cookie. The name cannot be changed after creation.
- getValue
Returns the value of the cookie.
- getMaxAge
Returns the maximum age of the cookie, specified in seconds, By default, -1
indicating the cookie w
- <init>
Constructs a cookie with a specified name and value.The name must conform to RFC
2109. That means it
- getDomain
Returns the domain name set for this cookie. The form of the domain name is set
by RFC 2109.
- getPath
Returns the path on the server to which the browser returns this cookie. The
cookie is visible to al
- isSecure
Returns true if the browser is sending cookies only over a secure protocol, or
false if the browser
- setMaxAge
Sets the maximum age of the cookie in seconds.A positive value indicates that
the cookie will expire
- setPath
Specifies a path for the cookie to which the client should return the cookie.The
cookie is visible t
- getVersion
Returns the version of the protocol this cookie complies with. Version 1
complies with RFC 2109, and
- setSecure
Indicates to the browser whether the cookie should only be sent using a secure
protocol, such as HTT
- asClientCookieString