Package io.vertx.mutiny.core.http
Class Cookie
- java.lang.Object
 - 
- io.vertx.mutiny.core.http.Cookie
 
 
- 
public class Cookie extends Object
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.
NOTE: This class has been automatically generated from theoriginalnon Mutiny-ified interface using Vert.x codegen. 
- 
- 
Field Summary
Fields Modifier and Type Field Description static TypeArg<Cookie>__TYPE_ARG 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Cookiecookie(String name, String value)Stringencode()booleanequals(Object o)io.vertx.core.http.CookiegetDelegate()StringgetDomain()longgetMaxAge()StringgetName()StringgetPath()io.vertx.core.http.CookieSameSitegetSameSite()StringgetValue()inthashCode()booleanisHttpOnly()booleanisSecure()static CookienewInstance(io.vertx.core.http.Cookie arg)CookiesetDomain(String domain)CookiesetHttpOnly(boolean httpOnly)CookiesetMaxAge(long maxAge)CookiesetPath(String path)CookiesetSameSite(io.vertx.core.http.CookieSameSite policy)CookiesetSecure(boolean secure)CookiesetValue(String value)StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
Cookie
public Cookie(io.vertx.core.http.Cookie delegate)
 
- 
Cookie
public Cookie(Object delegate)
 
 - 
 
- 
Method Detail
- 
getDelegate
public io.vertx.core.http.Cookie getDelegate()
 
- 
cookie
public static Cookie cookie(String name, String value)
- Parameters:
 name- the name of the cookievalue- the cookie value- Returns:
 - the cookie
 
 
- 
getName
public String getName()
- Returns:
 - the name of this cookie
 
 
- 
getValue
public String getValue()
- Returns:
 - the value of this cookie
 
 
- 
setValue
public Cookie setValue(String value)
- Parameters:
 value- The value to set- Returns:
 - a reference to this, so the API can be used fluently
 
 
- 
setDomain
public Cookie setDomain(String domain)
- Parameters:
 domain- The domain to use- Returns:
 - a reference to this, so the API can be used fluently
 
 
- 
getDomain
public String getDomain()
- Returns:
 - the domain for the cookie
 
 
- 
setPath
public Cookie setPath(String path)
- Parameters:
 path- The path to use for this cookie- Returns:
 - a reference to this, so the API can be used fluently
 
 
- 
getPath
public String getPath()
- Returns:
 - the path for this cookie
 
 
- 
setMaxAge
public Cookie setMaxAge(long maxAge)
- Parameters:
 maxAge- The maximum age of this cookie in seconds- Returns:
 - the instance of Cookie to chain method calls.
 
 
- 
getMaxAge
public long getMaxAge()
- Returns:
 - the maxAge of this cookie
 
 
- 
setSecure
public Cookie setSecure(boolean secure)
- Parameters:
 secure- True if this cookie is to be secure, otherwise false- Returns:
 - a reference to this, so the API can be used fluently
 
 
- 
isSecure
public boolean isSecure()
- Returns:
 - the security status of this cookie
 
 
- 
setHttpOnly
public Cookie setHttpOnly(boolean httpOnly)
- Parameters:
 httpOnly- True if the cookie is HTTP only, otherwise false.- Returns:
 - the instance of Cookie to chain method calls.
 
 
- 
isHttpOnly
public boolean isHttpOnly()
- Returns:
 - the http only status of this cookie
 
 
- 
setSameSite
public Cookie setSameSite(io.vertx.core.http.CookieSameSite policy)
- Parameters:
 policy- The policy should be one ofCookieSameSite.- Returns:
 - a reference to this, so the API can be used fluently
 
 
- 
getSameSite
public io.vertx.core.http.CookieSameSite getSameSite()
- Returns:
 - the SameSite policy of this cookie
 
 
- 
encode
public String encode()
- Returns:
 - the encoded cookie
 
 
- 
newInstance
public static Cookie newInstance(io.vertx.core.http.Cookie arg)
 
 - 
 
 -