Class CookiesManagerUtil

Object
com.liferay.portal.kernel.cookies.CookiesManagerUtil

public class CookiesManagerUtil extends Object
Author:
Tamas Molnar
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static boolean deleteCookies(String domain, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String... cookieNames)
    • getCookieValue

      public static String getCookieValue(String cookieName, javax.servlet.http.HttpServletRequest httpServletRequest)
    • getCookieValue

      public static String getCookieValue(String cookieName, javax.servlet.http.HttpServletRequest httpServletRequest, boolean toUpperCase)
    • getDomain

      public static String getDomain(javax.servlet.http.HttpServletRequest httpServletRequest)
    • getDomain

      public static String getDomain(String host)
    • hasConsentType

      public static boolean hasConsentType(int consentType, javax.servlet.http.HttpServletRequest httpServletRequest)
    • hasSessionId

      public static boolean hasSessionId(javax.servlet.http.HttpServletRequest httpServletRequest)
    • isEncodedCookie

      public static boolean isEncodedCookie(String cookieName)
    • validateSupportCookie

      public static void validateSupportCookie(javax.servlet.http.HttpServletRequest httpServletRequest) throws UnsupportedCookieException
      Throws:
      UnsupportedCookieException