Cookie, this class will be removed in Vert.x 4@Deprecated public interface Cookie extends 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)
| Modifier and Type | Method and Description |
|---|---|
static Cookie |
cookie(io.netty.handler.codec.http.cookie.Cookie nettyCookie)
Deprecated.
Create a new cookie from a Netty cookie
|
static Cookie |
cookie(String name,
String value)
Deprecated.
Create a new cookie
|
boolean |
isChanged()
Deprecated.
Has the cookie been changed? Changed cookieMap will be saved out in the response and sent to the browser.
|
boolean |
isFromUserAgent()
Deprecated.
Has this Cookie been sent from the User Agent (the browser)? or was created during the executing on the request.
|
void |
setChanged(boolean changed)
Deprecated.
Set the cookie as being changed.
|
Cookie |
setDomain(String domain)
Deprecated.
Sets the domain of this cookie
|
Cookie |
setHttpOnly(boolean httpOnly)
Deprecated.
Determines if this cookie is HTTP only.
|
Cookie |
setMaxAge(long maxAge)
Deprecated.
Sets the maximum age of this cookie in seconds.
|
Cookie |
setPath(String path)
Deprecated.
Sets the path of this cookie.
|
Cookie |
setSecure(boolean secure)
Deprecated.
Sets the security getStatus of this cookie
|
Cookie |
setValue(String value)
Deprecated.
Sets the value of this cookie
|
encode, getDomain, getName, getPath, getSameSite, getValue, isHttpOnly, isSecure, setSameSitestatic Cookie cookie(io.netty.handler.codec.http.cookie.Cookie nettyCookie)
nettyCookie - the Netty cookieCookie setValue(String value)
CookieCookie setDomain(String domain)
CookieCookie setPath(String path)
CookieCookie setMaxAge(long maxAge)
Cookie0 is specified, this cookie will be
automatically removed by browser because it will expire immediately.
If Long.MIN_VALUE 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.Cookie setSecure(boolean secure)
CookieCookie setHttpOnly(boolean httpOnly)
CookiesetHttpOnly in interface CookiehttpOnly - True if the cookie is HTTP only, otherwise false.boolean isChanged()
void setChanged(boolean changed)
changed - true if changedboolean isFromUserAgent()
Copyright © 2021 Eclipse. All rights reserved.