Cookie
, this class will be removed in Vert.x 4@Deprecated public interface Cookie extends io.vertx.core.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)
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.
|
Cookie |
setHttpOnly(boolean httpOnly)
Deprecated.
|
Cookie |
setMaxAge(long maxAge)
Deprecated.
|
Cookie |
setPath(String path)
Deprecated.
|
Cookie |
setSecure(boolean secure)
Deprecated.
|
Cookie |
setValue(String value)
Deprecated.
|
static Cookie cookie(String name, String value)
cookie
in interface io.vertx.core.http.Cookie
name
- the name of the cookievalue
- the cookie valuestatic Cookie cookie(io.netty.handler.codec.http.cookie.Cookie nettyCookie)
nettyCookie
- the Netty cookieCookie setValue(String value)
setValue
in interface io.vertx.core.http.Cookie
Cookie setDomain(String domain)
setDomain
in interface io.vertx.core.http.Cookie
Cookie setPath(String path)
setPath
in interface io.vertx.core.http.Cookie
Cookie setMaxAge(long maxAge)
setMaxAge
in interface io.vertx.core.http.Cookie
Cookie setSecure(boolean secure)
setSecure
in interface io.vertx.core.http.Cookie
Cookie setHttpOnly(boolean httpOnly)
setHttpOnly
in interface io.vertx.core.http.Cookie
boolean isChanged()
void setChanged(boolean changed)
changed
- true if changedboolean isFromUserAgent()
Copyright © 2021 Eclipse. All rights reserved.