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