public class AppCookies
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
COOKIE_MAX_AGE |
protected java.lang.String |
cookiePath |
protected boolean |
cookiesEnabled |
protected boolean |
httpOnly |
protected java.util.Map<java.lang.String,javax.servlet.http.Cookie> |
requestedCookies |
Constructor and Description |
---|
AppCookies() |
Modifier and Type | Method and Description |
---|---|
protected void |
addCookie(javax.servlet.http.Cookie cookie) |
void |
addCookie(java.lang.String name,
java.lang.String value) |
void |
addCookie(java.lang.String name,
java.lang.String value,
int maxAge) |
protected javax.servlet.http.Cookie |
getCookie(java.lang.String name) |
protected javax.servlet.http.Cookie |
getCookieIfEnabled(java.lang.String name) |
int |
getCookieMaxAge(java.lang.String name) |
java.lang.String |
getCookiePath() |
java.lang.String |
getCookieValue(java.lang.String name) |
boolean |
isCookiesEnabled() |
void |
removeCookie(java.lang.String name) |
void |
setCookiePath(java.lang.String cookiePath) |
void |
setCookiesEnabled(boolean cookiesEnabled) |
void |
updateCookies() |
public static final int COOKIE_MAX_AGE
protected transient java.util.Map<java.lang.String,javax.servlet.http.Cookie> requestedCookies
protected java.lang.String cookiePath
protected boolean cookiesEnabled
protected boolean httpOnly
public java.lang.String getCookieValue(java.lang.String name)
public int getCookieMaxAge(java.lang.String name)
public void addCookie(java.lang.String name, java.lang.String value)
public void addCookie(java.lang.String name, java.lang.String value, int maxAge)
public void removeCookie(java.lang.String name)
protected javax.servlet.http.Cookie getCookieIfEnabled(java.lang.String name)
protected javax.servlet.http.Cookie getCookie(java.lang.String name)
protected void addCookie(javax.servlet.http.Cookie cookie)
public void updateCookies()
public java.lang.String getCookiePath()
public void setCookiePath(java.lang.String cookiePath)
public boolean isCookiesEnabled()
public void setCookiesEnabled(boolean cookiesEnabled)