public class Cookie
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Cookie.SameSite
SameSite values.
|
Constructor and Description |
---|
Cookie() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDomain() |
java.lang.Boolean |
getHttpOnly() |
java.time.Duration |
getMaxAge() |
java.lang.String |
getName() |
java.lang.String |
getPath() |
Cookie.SameSite |
getSameSite() |
java.lang.Boolean |
getSecure() |
void |
setDomain(java.lang.String domain) |
void |
setHttpOnly(java.lang.Boolean httpOnly) |
void |
setMaxAge(java.time.Duration maxAge) |
void |
setName(java.lang.String name) |
void |
setPath(java.lang.String path) |
void |
setSameSite(Cookie.SameSite sameSite) |
void |
setSecure(java.lang.Boolean secure) |
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getDomain()
public void setDomain(java.lang.String domain)
public java.lang.String getPath()
public void setPath(java.lang.String path)
public java.lang.Boolean getHttpOnly()
public void setHttpOnly(java.lang.Boolean httpOnly)
public java.lang.Boolean getSecure()
public void setSecure(java.lang.Boolean secure)
public java.time.Duration getMaxAge()
public void setMaxAge(java.time.Duration maxAge)
public Cookie.SameSite getSameSite()
public void setSameSite(Cookie.SameSite sameSite)