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) void
invalidateCookie
(jakarta.servlet.http.HttpServletResponse response, String cookieName) void
setCookieValue
(jakarta.servlet.http.HttpServletResponse response, String cookieName, String cookieValue) void
setCookieValue
(jakarta.servlet.http.HttpServletResponse response, String cookieName, String cookieValue, String path, Integer maxAge, Boolean isSecure) Checkscookies.use.secure
System 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.secure
System 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
-