|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.blojsom.util.CookieUtils
CookieUtils
Constructor Summary | |
CookieUtils()
|
Method Summary | |
static void |
addCookie(javax.servlet.http.HttpServletResponse httpServletResponse,
int cookieExpiration,
java.lang.String cookieKey,
java.lang.String cookieValue)
Add a cookie with a key and value to the response |
static javax.servlet.http.Cookie |
getCookie(javax.servlet.http.HttpServletRequest httpServletRequest,
java.lang.String cookieKey)
Return a cookie given a particular key |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CookieUtils()
Method Detail |
public static javax.servlet.http.Cookie getCookie(javax.servlet.http.HttpServletRequest httpServletRequest, java.lang.String cookieKey)
httpServletRequest
- RequestcookieKey
- Cookie key
Cookie
of the requested key or null
if no cookie
under that name is foundpublic static void addCookie(javax.servlet.http.HttpServletResponse httpServletResponse, int cookieExpiration, java.lang.String cookieKey, java.lang.String cookieValue)
httpServletResponse
- ResponsecookieKey
- Cookie keycookieValue
- Cookie value
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |