Class CartCookieProperties
java.lang.Object
com.broadleafcommerce.cartoperation.web.autoconfigure.CartCookieProperties
@Validated
@ConfigurationProperties("broadleaf.cartoperation.cart-cookie")
public class CartCookieProperties
extends Object
- Author:
- Phillip Verheyden (phillipuniverse), Jeff Fischer, Chris Kittrell (ckittrell)
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Specifies how long the cart cookie should be considered active.Name of the cart cookie.The value to use for the SameSite attribute on the cart cookie.getJwt()
int
hashCode()
boolean
Whether or not the applicationId should be appended to the cart cookie name.void
setApplicationIdIncludedInCookieName
(boolean applicationIdIncludedInCookieName) Whether or not the applicationId should be appended to the cart cookie name.void
setCartTtl
(Duration cartTtl) Specifies how long the cart cookie should be considered active.void
setCookieName
(String cookieName) Name of the cart cookie.void
setCookieSameSiteValue
(String cookieSameSiteValue) The value to use for the SameSite attribute on the cart cookie.void
toString()
-
Constructor Details
-
CartCookieProperties
public CartCookieProperties()
-
-
Method Details
-
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
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
Specifies how long the cart cookie should be considered active. -
getJwt
-
setCookieName
Name of the cart cookie. If applicationIdIncludedInCookieName is true, then the provided applicationId will be appended to the end of the cookie name. -
setCookieSameSiteValue
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
Specifies how long the cart cookie should be considered active. -
setJwt
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-