public class CookiesManagerUtil
extends Object
Constructor and Description |
---|
CookiesManagerUtil() |
Modifier and Type | Method and Description |
---|---|
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 |
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 |
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 |
getDomain(javax.servlet.http.HttpServletRequest httpServletRequest) |
static String |
getDomain(String host) |
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) |
public static boolean addCookie(javax.servlet.http.Cookie cookie, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
public static boolean addCookie(javax.servlet.http.Cookie cookie, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, boolean secure)
public static boolean addCookie(int consentType, javax.servlet.http.Cookie cookie, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
public static boolean addCookie(int consentType, javax.servlet.http.Cookie cookie, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, boolean secure)
public static boolean addSupportCookie(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
public static boolean deleteCookies(String domain, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, String... cookieNames)
public static String getCookieValue(String cookieName, javax.servlet.http.HttpServletRequest httpServletRequest)
public static String getCookieValue(String cookieName, javax.servlet.http.HttpServletRequest httpServletRequest, boolean toUpperCase)
public static String getDomain(javax.servlet.http.HttpServletRequest httpServletRequest)
public static String getDomain(String host)
public static boolean hasConsentType(int consentType, javax.servlet.http.HttpServletRequest httpServletRequest)
public static boolean hasSessionId(javax.servlet.http.HttpServletRequest httpServletRequest)
public static boolean isEncodedCookie(String cookieName)
public static void validateSupportCookie(javax.servlet.http.HttpServletRequest httpServletRequest) throws UnsupportedCookieException
UnsupportedCookieException