| java.lang.Object org.jivesoftware.util.CookieUtils
CookieUtils | public class CookieUtils (Code) | | |
Method Summary | |
public static void | deleteCookie(HttpServletRequest request, HttpServletResponse response, Cookie cookie) Deletes the specified cookie. | public static Cookie | getCookie(HttpServletRequest request, String name) Returns the specified cookie, or null if the cookie
does not exist. | public static void | setCookie(HttpServletRequest request, HttpServletResponse response, String name, String value) Stores a value in a cookie. | public static void | setCookie(HttpServletRequest request, HttpServletResponse response, String name, String value, int maxAge) Stores a value in a cookie. |
deleteCookie | public static void deleteCookie(HttpServletRequest request, HttpServletResponse response, Cookie cookie)(Code) | | Deletes the specified cookie.
Parameters: request - the servlet request. Parameters: response - the servlet response. Parameters: cookie - the cookie object to be deleted. |
getCookie | public static Cookie getCookie(HttpServletRequest request, String name)(Code) | | Returns the specified cookie, or null if the cookie
does not exist. Note: because of the way that cookies are implemented
it's possible for multiple cookies with the same name to exist (but with
different domain values). This method will return the first cookie that
has a name match.
Parameters: request - the servlet request. Parameters: name - the name of the cookie. the Cookie object if it exists, otherwise null. |
|
|