|
Jive Forums API (5.5.8) Developer Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.util.CookieUtils
public class CookieUtils
A set of methods for manipulating cookies.
Cookie,
HttpServletRequest.getCookies()| Constructor Summary | |
|---|---|
CookieUtils()
|
|
| Method Summary | |
|---|---|
static void |
deleteCookie(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.Cookie cookie)
Deletes the specified cookie. |
static javax.servlet.http.Cookie |
getCookie(javax.servlet.http.HttpServletRequest request,
java.lang.String name)
Returns the specified cookie, or null if the cookie does not exist. |
static void |
setCookie(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String name,
java.lang.String value)
Stores a value in a cookie. |
static void |
setCookie(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String name,
java.lang.String value,
int maxAge)
Stores a value in a cookie. |
| 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 request,
java.lang.String name)
request - the servlet request.name - the name of the cookie.
public static void deleteCookie(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.http.Cookie cookie)
request - the servlet request.response - the servlet response.cookie - the cookie object to be deleted.
public static void setCookie(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String name,
java.lang.String value)
request - the servlet request.response - the servlet response.name - a name to identify the cookie.value - the value to store in the cookie.setCookie(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,String,String,int)
public static void setCookie(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
java.lang.String name,
java.lang.String value,
int maxAge)
request - the servlet request.response - the servlet response.name - a name to identify the cookie.value - the value to store in the cookie.maxAge - the time (in seconds) this cookie should live.setCookie(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,String,String)
|
Jive Forums Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||