Represents an HTTP Cookie.
All cookies must have a name and a value and can optionally have other fields set such as path, domain, etc.
(Derived from io.netty.handler.codec.http.Cookie)
AnythingObjectCookieBasicIdentifiableObjectAnythingno subtypes hierarchy
| Initializer |
Cookie(Cookie unknown) |
| Inherited Attributes |
Attributes inherited from: Objecthash, string |
| Methods | |
encode | shared default String encode()Encode the cookie to a string. This is what is used in the Set-Cookie header |
getDomain | shared default String? getDomain()@return the domain for the cookie |
getName | shared default String getName()@return the name of this cookie |
getPath | shared default String? getPath() |
getValue | shared default String getValue()@return the value of this cookie |
isChanged | shared default Boolean isChanged()Has the cookie been changed? Changed cookies will be saved out in the response and sent to the browser. |
setChanged | shared default void setChanged(Boolean changed)Set the cookie as being changed. Changed will be true for a cookie just created, false by default if just read from the request Parameters:
|
setDomain | shared default Cookie setDomain(String? domain)Sets the domain of this cookie Parameters:
|
setHttpOnly | shared default Cookie setHttpOnly(Boolean httpOnly)Determines if this cookie is HTTP only. If set to true, this cookie cannot be accessed by a client side script. However, this works only if the browser supports it. For for information, please look here. Parameters:
|
setMaxAge | shared default Cookie setMaxAge(Integer maxAge)Sets the maximum age of this cookie in seconds.
If an age of Parameters:
|
setPath | shared default Cookie setPath(String? path)Sets the path of this cookie. Parameters:
|
setSecure | shared default Cookie setSecure(Boolean secure)Sets the security getStatus of this cookie Parameters:
|
setValue | shared default Cookie setValue(String value)Sets the value of this cookie Parameters:
|
| Inherited Methods |
Methods inherited from: Objectequals |