com.liferay.portal.util
Class CookieKeys

java.lang.Object
  extended by com.liferay.portal.util.CookieKeys
All Implemented Interfaces:
com.liferay.portal.kernel.util.CookieKeys

public class CookieKeys
extends java.lang.Object
implements com.liferay.portal.kernel.util.CookieKeys

Author:
Brian Wing Shun Chan, Minhchau Dang

Field Summary
static int MAX_AGE
           
static int VERSION
           
 
Fields inherited from interface com.liferay.portal.kernel.util.CookieKeys
COMPANY_ID, COOKIE_SUPPORT, GUEST_LANGUAGE_ID, ID, JSESSIONID, LOGIN, PASSWORD, REMEMBER_ME, SCREEN_NAME, USER_UUID
 
Constructor Summary
CookieKeys()
           
 
Method Summary
static void addCookie(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.http.Cookie cookie)
           
static void addCookie(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.http.Cookie cookie, boolean secure)
           
static void addSupportCookie(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
           
static java.lang.String getCookie(javax.servlet.http.HttpServletRequest request, java.lang.String name)
           
static java.lang.String getCookie(javax.servlet.http.HttpServletRequest request, java.lang.String name, boolean toUpperCase)
           
static java.lang.String getDomain(javax.servlet.http.HttpServletRequest request)
           
static java.lang.String getDomain(java.lang.String host)
           
static boolean hasSessionId(javax.servlet.http.HttpServletRequest request)
           
static boolean isEncodedCookie(java.lang.String name)
           
static void validateSupportCookie(javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_AGE

public static final int MAX_AGE
See Also:
Constant Field Values

VERSION

public static final int VERSION
See Also:
Constant Field Values
Constructor Detail

CookieKeys

public CookieKeys()
Method Detail

addCookie

public static void addCookie(javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response,
                             javax.servlet.http.Cookie cookie)

addCookie

public static void addCookie(javax.servlet.http.HttpServletRequest request,
                             javax.servlet.http.HttpServletResponse response,
                             javax.servlet.http.Cookie cookie,
                             boolean secure)

addSupportCookie

public static void addSupportCookie(javax.servlet.http.HttpServletRequest request,
                                    javax.servlet.http.HttpServletResponse response)

getCookie

public static java.lang.String getCookie(javax.servlet.http.HttpServletRequest request,
                                         java.lang.String name)

getCookie

public static java.lang.String getCookie(javax.servlet.http.HttpServletRequest request,
                                         java.lang.String name,
                                         boolean toUpperCase)

getDomain

public static java.lang.String getDomain(javax.servlet.http.HttpServletRequest request)

getDomain

public static java.lang.String getDomain(java.lang.String host)

hasSessionId

public static boolean hasSessionId(javax.servlet.http.HttpServletRequest request)

isEncodedCookie

public static boolean isEncodedCookie(java.lang.String name)

validateSupportCookie

public static void validateSupportCookie(javax.servlet.http.HttpServletRequest request)
                                  throws com.liferay.portal.CookieNotSupportedException
Throws:
com.liferay.portal.CookieNotSupportedException