| java.lang.Object org.blojsom.util.CookieUtils
CookieUtils | public class CookieUtils (Code) | | CookieUtils
author: David Czarnecki version: $Id: CookieUtils.java,v 1.4 2007/01/17 02:35:18 czarneckid Exp $ since: blojsom 3.0 |
addCookie | public static void addCookie(HttpServletResponse httpServletResponse, int cookieExpiration, String cookieKey, String cookieValue)(Code) | | Add a cookie with a key and value to the response
Parameters: httpServletResponse - Response Parameters: cookieExpiration - Cookie expiration (in seconds) Parameters: cookieKey - Cookie key Parameters: cookieValue - Cookie value |
getCookie | public static Cookie getCookie(HttpServletRequest httpServletRequest, String cookieKey)(Code) | | Return a cookie given a particular key
Parameters: httpServletRequest - Request Parameters: cookieKey - Cookie key Cookie of the requested key or null if no cookieunder that name is found |
|
|