Class CookiesManagerUtil
Object
com.liferay.portal.kernel.cookies.CookiesManagerUtil
- Author:
- Tamas Molnar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
addCookie
(int consentType, javax.servlet.http.Cookie cookie, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) static boolean
addCookie
(int consentType, javax.servlet.http.Cookie cookie, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, boolean secure) static boolean
addCookie
(javax.servlet.http.Cookie cookie, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) static boolean
addCookie
(javax.servlet.http.Cookie cookie, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, boolean secure) static boolean
addSupportCookie
(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) static boolean
deleteCookies
(String domain, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String... cookieNames) static String
getCookieValue
(String cookieName, javax.servlet.http.HttpServletRequest httpServletRequest) static String
getCookieValue
(String cookieName, javax.servlet.http.HttpServletRequest httpServletRequest, boolean toUpperCase) static String
static String
getDomain
(javax.servlet.http.HttpServletRequest httpServletRequest) static boolean
hasConsentType
(int consentType, javax.servlet.http.HttpServletRequest httpServletRequest) static boolean
hasSessionId
(javax.servlet.http.HttpServletRequest httpServletRequest) static boolean
isEncodedCookie
(String cookieName) static void
validateSupportCookie
(javax.servlet.http.HttpServletRequest httpServletRequest)
-
Constructor Details
-
CookiesManagerUtil
public CookiesManagerUtil()
-
-
Method Details
-
addCookie
public static boolean addCookie(javax.servlet.http.Cookie cookie, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) -
addCookie
public static boolean addCookie(javax.servlet.http.Cookie cookie, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, boolean secure) -
addCookie
public static boolean addCookie(int consentType, javax.servlet.http.Cookie cookie, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) -
addCookie
public static boolean addCookie(int consentType, javax.servlet.http.Cookie cookie, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, boolean secure) -
addSupportCookie
public static boolean addSupportCookie(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) -
deleteCookies
-
getCookieValue
-
getCookieValue
-
getDomain
-
getDomain
-
hasConsentType
public static boolean hasConsentType(int consentType, javax.servlet.http.HttpServletRequest httpServletRequest) -
hasSessionId
public static boolean hasSessionId(javax.servlet.http.HttpServletRequest httpServletRequest) -
isEncodedCookie
-
validateSupportCookie
public static void validateSupportCookie(javax.servlet.http.HttpServletRequest httpServletRequest) throws UnsupportedCookieException - Throws:
UnsupportedCookieException
-