Class CookieHelper
- java.lang.Object
-
- pl.edu.icm.unity.engine.api.utils.CookieHelper
-
public class CookieHelper extends Object
Cookie finder- Author:
- K. Benedyczak
-
-
Constructor Summary
Constructors Constructor Description CookieHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getCookie(javax.servlet.http.Cookie[] cookies, String name)
static String
getCookie(javax.servlet.http.HttpServletRequest request, String name)
static javax.servlet.http.Cookie
setupHttpCookie(String cookieName, String cookieValue, int maxAge)
-
-
-
Method Detail
-
getCookie
public static String getCookie(javax.servlet.http.HttpServletRequest request, String name)
- Parameters:
request
-name
-- Returns:
- cookie name by value
-
getCookie
public static String getCookie(javax.servlet.http.Cookie[] cookies, String name)
- Parameters:
request
-name
-- Returns:
- cookie name by value
-
-