Class CookiesManagerUtil
Object
com.liferay.portal.kernel.cookies.CookiesManagerUtil
- Author:
- Tamas Molnar
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanaddCookie(int consentType, javax.servlet.http.Cookie cookie, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) static booleanaddCookie(int consentType, javax.servlet.http.Cookie cookie, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, boolean secure) static booleanaddCookie(javax.servlet.http.Cookie cookie, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) static booleanaddCookie(javax.servlet.http.Cookie cookie, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, boolean secure) static booleanaddSupportCookie(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) static booleandeleteCookies(String domain, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String... cookieNames) static StringgetCookieValue(String cookieName, javax.servlet.http.HttpServletRequest httpServletRequest) static StringgetCookieValue(String cookieName, javax.servlet.http.HttpServletRequest httpServletRequest, boolean toUpperCase) static Stringstatic StringgetDomain(javax.servlet.http.HttpServletRequest httpServletRequest) static booleanhasConsentType(int consentType, javax.servlet.http.HttpServletRequest httpServletRequest) static booleanhasSessionId(javax.servlet.http.HttpServletRequest httpServletRequest) static booleanisEncodedCookie(String cookieName) static voidvalidateSupportCookie(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
-