Package io.vertx.mutiny.core.http
Class Cookie
java.lang.Object
io.vertx.mutiny.core.http.Cookie
- All Implemented Interfaces:
MutinyDelegate
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 theoriginal
non Mutiny-ified interface using Vert.x codegen.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Cookie
encode()
boolean
io.vertx.core.http.Cookie
long
getName()
getPath()
io.vertx.core.http.CookieSameSite
getValue()
int
hashCode()
boolean
boolean
isSecure()
static Cookie
newInstance
(io.vertx.core.http.Cookie arg) setHttpOnly
(boolean httpOnly) setMaxAge
(long maxAge) setSameSite
(io.vertx.core.http.CookieSameSite policy) setSecure
(boolean secure) toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
Cookie
public Cookie(io.vertx.core.http.Cookie delegate) -
Cookie
-
-
Method Details
-
getDelegate
public io.vertx.core.http.Cookie getDelegate()- Specified by:
getDelegate
in interfaceMutinyDelegate
- Returns:
- the delegate used by this Mutiny object of generated type
-
toString
-
equals
-
hashCode
public int hashCode() -
cookie
- Parameters:
name
- the name of the cookievalue
- the cookie value- Returns:
- the cookie
-
getName
- Returns:
- the name of this cookie
-
getValue
- Returns:
- the value of this cookie
-
setValue
- Parameters:
value
- The value to set- Returns:
- a reference to this, so the API can be used fluently
-
setDomain
- Parameters:
domain
- The domain to use- Returns:
- a reference to this, so the API can be used fluently
-
getDomain
- Returns:
- the domain for the cookie
-
setPath
- Parameters:
path
- The path to use for this cookie- Returns:
- a reference to this, so the API can be used fluently
-
getPath
- Returns:
- the path for this cookie
-
setMaxAge
- 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
- 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
- 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
- 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
- Returns:
- the encoded cookie
-
newInstance
-