public class CookieManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
COOKIE_LIFETIME
how long do we want to store the users information?
|
| Constructor and Description |
|---|
CookieManager(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Instantiates a new cookie manager.
|
| Modifier and Type | Method and Description |
|---|---|
javax.servlet.http.Cookie |
getCookie(String name)
Gets the cookie.
|
String |
getCookieValue(String name)
Gets the value of a cookie.
|
void |
setCookie(javax.servlet.http.Cookie cookie)
Sets the cookie.
|
public static final int COOKIE_LIFETIME
public CookieManager(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
request - the requestresponse - the responsepublic String getCookieValue(String name)
name - the namepublic javax.servlet.http.Cookie getCookie(String name)
name - the namepublic void setCookie(javax.servlet.http.Cookie cookie)
cookie - the new cookieCopyright © 2019 SEMS project @ University of Rostock. All rights reserved.