open class Cookie
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)
NOTE: This class has been automatically generated from the io.vertx.ext.web.Cookie non RX-ified interface using Vert.x codegen.
Cookie(delegate: Cookie) |
static val __TYPE_ARG: TypeArg<Cookie> |
open static fun cookie(name: String, value: String): Cookie
Create a new cookie |
|
open fun encode(): String
Encode the cookie to a string. This is what is used in the Set-Cookie header |
|
open fun equals(other: Any?): Boolean |
|
open fun getDelegate(): Cookie |
|
open fun getDomain(): String |
|
open fun getName(): String |
|
open fun getPath(): String |
|
open fun getValue(): String |
|
open fun hashCode(): Int |
|
open fun isChanged(): Boolean
Has the cookie been changed? Changed cookies will be saved out in the response and sent to the browser. |
|
open fun isFromUserAgent(): Boolean
Has this Cookie been sent from the User Agent (the browser)? or was created during the executing on the request. |
|
open static fun newInstance(arg: Cookie): Cookie |
|
open fun setChanged(changed: Boolean): Unit
Set the cookie as being changed. Changed will be true for a cookie just created, false by default if just read from the request |
|
open fun setDomain(domain: String): Cookie
Sets the domain of this cookie |
|
open fun setHttpOnly(httpOnly: Boolean): Cookie
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. |
|
open fun setMaxAge(maxAge: Long): Cookie
Sets the maximum age of this cookie in seconds. If an age of |
|
open fun setPath(path: String): Cookie
Sets the path of this cookie. |
|
open fun setSecure(secure: Boolean): Cookie
Sets the security getStatus of this cookie |
|
open fun setValue(value: String): Cookie
Sets the value of this cookie |
|
open fun toString(): String |