public class CookieHelper extends Object
| Constructor and Description |
|---|
CookieHelper() |
| Modifier and Type | Method and Description |
|---|---|
static javax.servlet.http.Cookie |
getCookie(String name,
javax.servlet.http.HttpServletRequest request)
return the first cookie found with this name
|
static void |
replaceCookie(String name,
String value,
int expiry,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
expires all existing cookies with this name and sets a fresh one, so there
will be only one valid cookie with this name.
|
public static void replaceCookie(String name, String value, int expiry, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
JsfUtil.contextPath() will be
used as path for he cookie.name - value - expiry - public static javax.servlet.http.Cookie getCookie(String name, javax.servlet.http.HttpServletRequest request)
name - Copyright © 2018 Fryske Akademy. All rights reserved.