public class 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)
NOTE: This class has been automatically generated from theoriginal
non RX-ified interface using Vert.x codegen.Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<Cookie> |
__TYPE_ARG |
Constructor and Description |
---|
Cookie(Cookie delegate) |
Cookie(Object delegate) |
Modifier and Type | Method and Description |
---|---|
static Cookie |
cookie(String name,
String value)
Deprecated.
|
boolean |
equals(Object o) |
Cookie |
getDelegate() |
int |
hashCode() |
boolean |
isChanged()
Deprecated.
|
boolean |
isFromUserAgent()
Deprecated.
|
static Cookie |
newInstance(Cookie arg) |
void |
setChanged(boolean changed)
Deprecated.
|
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.
|
String |
toString() |
encode, getDomain, getName, getPath, getSameSite, getValue, isHttpOnly, isSecure, setSameSite
public static final io.vertx.lang.rx.TypeArg<Cookie> __TYPE_ARG
public Cookie getDelegate()
getDelegate
in class Cookie
@Deprecated public static Cookie cookie(String name, String value)
name
- the name of the cookievalue
- the cookie value@Deprecated public Cookie setValue(String value)
Cookie
@Deprecated public Cookie setDomain(String domain)
Cookie
@Deprecated public Cookie setPath(String path)
Cookie
@Deprecated public Cookie setMaxAge(long maxAge)
Cookie
0
is specified, this cookie will be
automatically removed by browser because it will expire immediately.
If 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.@Deprecated public Cookie setSecure(boolean secure)
Cookie
@Deprecated public Cookie setHttpOnly(boolean httpOnly)
Cookie
setHttpOnly
in class Cookie
httpOnly
- True if the cookie is HTTP only, otherwise false.@Deprecated public boolean isChanged()
@Deprecated public void setChanged(boolean changed)
changed
- true if changed@Deprecated public boolean isFromUserAgent()
Copyright © 2023 Eclipse. All rights reserved.