public class CookieHelper
extends Object
Cookie finder
- Author:
- K. Benedyczak
-
Constructor Summary
Constructors
-
Method Summary
static javax.servlet.http.Cookie
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
CookieHelper
public CookieHelper()
-
Method Details
-
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
-
setupHttpCookie
public static javax.servlet.http.Cookie setupHttpCookie(String cookieName,
String cookieValue,
int maxAge)