Liferay 6.1.2-ce-ga3

com.liferay.portal.util
Class CookieKeys

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

public class CookieKeys
extends Object
implements CookieKeys


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 String getCookie(javax.servlet.http.HttpServletRequest request, String name)
           
static String getCookie(javax.servlet.http.HttpServletRequest request, String name, boolean toUpperCase)
           
static String getDomain(javax.servlet.http.HttpServletRequest request)
           
static String getDomain(String host)
           
static boolean hasSessionId(javax.servlet.http.HttpServletRequest request)
           
static boolean isEncodedCookie(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 String getCookie(javax.servlet.http.HttpServletRequest request,
                               String name)

getCookie

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

getDomain

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

getDomain

public static String getDomain(String host)

hasSessionId

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

isEncodedCookie

public static boolean isEncodedCookie(String name)

validateSupportCookie

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

Liferay 6.1.2-ce-ga3