Interface CookieUtils
- All Known Implementing Classes:
GenericCookieUtilsImpl
public interface CookieUtils
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetCookieValue(jakarta.servlet.http.HttpServletRequest request, String cookieName) voidinvalidateCookie(jakarta.servlet.http.HttpServletResponse response, String cookieName) voidsetCookieValue(jakarta.servlet.http.HttpServletResponse response, String cookieName, String cookieValue) voidsetCookieValue(jakarta.servlet.http.HttpServletResponse response, String cookieName, String cookieValue, String path, Integer maxAge, Boolean isSecure) Checkscookies.use.secureSystem Property, which determines whether to use HTTPS cookie over HTTPS connection or HTTP only.
-
Field Details
-
CUSTOMER_COOKIE_NAME
- See Also:
-
-
Method Details
-
shouldUseSecureCookieIfApplicable
Boolean shouldUseSecureCookieIfApplicable()Checkscookies.use.secureSystem Property, which determines whether to use HTTPS cookie over HTTPS connection or HTTP only.- Returns:
- value of
cookies.use.secure
-
getCookieValue
-
setCookieValue
void setCookieValue(jakarta.servlet.http.HttpServletResponse response, String cookieName, String cookieValue, String path, Integer maxAge, Boolean isSecure) - Parameters:
response-cookieName-cookieValue-path-maxAge-isSecure-
-
setCookieValue
-
invalidateCookie
-