Liferay 6.0.5

com.liferay.portal.util
Class CookieKeys

java.lang.Object
  extended by com.liferay.portal.util.CookieKeys

public class CookieKeys
extends Object


Field Summary
static String COMPANY_ID
           
static String COOKIE_SUPPORT
           
static String GUEST_LANGUAGE_ID
           
static String ID
           
static String JSESSIONID
           
static String LOGIN
           
static int MAX_AGE
           
static String PASSWORD
           
static String REMEMBER_ME
           
static String SCREEN_NAME
           
static int VERSION
           
 
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 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

COOKIE_SUPPORT

public static final String COOKIE_SUPPORT
See Also:
Constant Field Values

COMPANY_ID

public static final String COMPANY_ID
See Also:
Constant Field Values

GUEST_LANGUAGE_ID

public static final String GUEST_LANGUAGE_ID
See Also:
Constant Field Values

ID

public static final String ID
See Also:
Constant Field Values

JSESSIONID

public static final String JSESSIONID
See Also:
Constant Field Values

LOGIN

public static final String LOGIN
See Also:
Constant Field Values

PASSWORD

public static final String PASSWORD
See Also:
Constant Field Values

REMEMBER_ME

public static final String REMEMBER_ME
See Also:
Constant Field Values

SCREEN_NAME

public static final String SCREEN_NAME
See Also:
Constant Field Values

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)

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.0.5