public class AppCookies
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static int |
COOKIE_MAX_AGE |
Constructor and Description |
---|
AppCookies() |
Modifier and Type | Method and Description |
---|---|
void |
addCookie(java.lang.String name,
java.lang.String value) |
void |
addCookie(java.lang.String name,
java.lang.String value,
int maxAge) |
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
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)
public void updateCookies()
public java.lang.String getCookiePath()
public void setCookiePath(java.lang.String cookiePath)
public boolean isCookiesEnabled()
public void setCookiesEnabled(boolean cookiesEnabled)