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)

- `Anything`
  - `Object`
    - `Basic` ...and other supertypes
      - `Cookie`

- `Cookie`
  - `Basic`
    - `Identifiable`
    - `Object`
      - `Anything`

no subtypes hierarchy

Initializer
`Cookie(Cookie unknown)`

Inherited Attributes
Attributes inherited from: `Object` `hash`, `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: `changed` true if changed
`setDomain` | `shared default Cookie setDomain(String? domain)` Sets the domain of this cookie Parameters: `domain` The domain to use
`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: `httpOnly` True if the cookie is HTTP only, otherwise false.
`setMaxAge` | `shared default Cookie setMaxAge(Integer maxAge)` Sets the maximum age of this cookie in seconds. If an age of `0` is specified, this cookie will be automatically removed by browser because it will expire immediately. If `java.lang.Long` is specified, this cookie will be removed when the browser is closed. If you don't set this the cookie will be a session cookie and be removed when the browser is closed. Parameters: `maxAge` The maximum age of this cookie in seconds
`setPath` | `shared default Cookie setPath(String? path)` Sets the path of this cookie. Parameters: `path` The path to use for this cookie
`setSecure` | `shared default Cookie setSecure(Boolean secure)` Sets the security getStatus of this cookie Parameters: `secure` True if this cookie is to be secure, otherwise false
`setValue` | `shared default Cookie setValue(String value)` Sets the value of this cookie Parameters: `value` The value to set

Inherited Methods
Methods inherited from: `Object` `equals`