Class CartCookieProperties


  • @Validated
    @ConfigurationProperties("broadleaf.cartoperation.cart-cookie")
    public class CartCookieProperties
    extends Object
    Author:
    Phillip Verheyden (phillipuniverse), Jeff Fischer, Chris Kittrell (ckittrell)
    • Constructor Detail

      • CartCookieProperties

        public CartCookieProperties()
    • Method Detail

      • getCookieName

        public String getCookieName()
        Name of the cart cookie. If applicationIdIncludedInCookieName is true, then the provided applicationId will be appended to the end of the cookie name.
      • getCookieSameSiteValue

        public String getCookieSameSiteValue()
        The value to use for the SameSite attribute on the cart cookie. Can be "None", "Lax", or "Strict".
      • isApplicationIdIncludedInCookieName

        public boolean isApplicationIdIncludedInCookieName()
        Whether or not the applicationId should be appended to the cart cookie name. This should be used if the cookies of different applications cannot be distinguished by their domain. For example, if a request param is used to resolve the application, then the cookies will be accessible via the same domain and therefore it's required that the application id is appended to the cookie name so that we can resolve the correct cart for that application.
      • getCartTtl

        public Duration getCartTtl()
        Specifies how long the cart cookie should be considered active.
      • setCookieName

        public void setCookieName​(String cookieName)
        Name of the cart cookie. If applicationIdIncludedInCookieName is true, then the provided applicationId will be appended to the end of the cookie name.
      • setCookieSameSiteValue

        public void setCookieSameSiteValue​(String cookieSameSiteValue)
        The value to use for the SameSite attribute on the cart cookie. Can be "None", "Lax", or "Strict".
      • setApplicationIdIncludedInCookieName

        public void setApplicationIdIncludedInCookieName​(boolean applicationIdIncludedInCookieName)
        Whether or not the applicationId should be appended to the cart cookie name. This should be used if the cookies of different applications cannot be distinguished by their domain. For example, if a request param is used to resolve the application, then the cookies will be accessible via the same domain and therefore it's required that the application id is appended to the cookie name so that we can resolve the correct cart for that application.
      • setCartTtl

        public void setCartTtl​(Duration cartTtl)
        Specifies how long the cart cookie should be considered active.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object