| Modifier and Type | Field and Description |
|---|---|
protected boolean |
discard |
protected String |
domain |
protected boolean |
httpOnly |
protected int |
maxAge |
protected String |
name |
protected String |
path |
protected boolean |
sameSite |
protected String |
sameSiteMode |
protected boolean |
secure |
protected String |
value |
| Constructor and Description |
|---|
CookieImpl(String name) |
CookieImpl(String name,
String value) |
| Modifier and Type | Method and Description |
|---|---|
static String |
getCookieValue(javax.servlet.http.HttpServletRequest request,
String cookieName) |
String |
getDomain() |
int |
getMaxAge() |
String |
getName() |
String |
getPath() |
String |
getSameSiteMode() |
String |
getValue() |
boolean |
isDiscard() |
boolean |
isHttpOnly() |
boolean |
isSameSite() |
boolean |
isSecure() |
void |
setCookie(javax.servlet.http.HttpServletResponse response) |
CookieImpl |
setDiscard(boolean discard) |
CookieImpl |
setDomain(String domain) |
CookieImpl |
setHttpOnly(boolean httpOnly) |
CookieImpl |
setMaxAge(int maxAge,
TimeUnit unit) |
CookieImpl |
setPath(String path) |
CookieImpl |
setSameSite(boolean sameSite) |
CookieImpl |
setSameSiteMode(String sameSiteMode) |
CookieImpl |
setSecure(boolean secure) |
CookieImpl |
setValue(String value) |
String |
toString() |
protected final String name
protected String value
protected String path
protected String domain
protected int maxAge
protected boolean discard
protected boolean secure
protected boolean httpOnly
protected boolean sameSite
protected String sameSiteMode
public CookieImpl(String name)
public String getName()
public String getValue()
public CookieImpl setValue(String value)
public String getPath()
public CookieImpl setPath(String path)
public String getDomain()
public CookieImpl setDomain(String domain)
public int getMaxAge()
public CookieImpl setMaxAge(int maxAge, TimeUnit unit)
public boolean isDiscard()
public CookieImpl setDiscard(boolean discard)
public boolean isSecure()
public CookieImpl setSecure(boolean secure)
public boolean isHttpOnly()
public CookieImpl setHttpOnly(boolean httpOnly)
public boolean isSameSite()
public CookieImpl setSameSite(boolean sameSite)
public String getSameSiteMode()
public CookieImpl setSameSiteMode(String sameSiteMode)
public void setCookie(javax.servlet.http.HttpServletResponse response)
Copyright © 2020. All rights reserved.