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
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanSpecifies 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.Whether the cart discriminator ID should be appended to the cart cookie name.getJwt()inthashCode()booleanDeprecated.voidsetApplicationIdIncludedInCookieName(boolean applicationIdIncludedInCookieName) Deprecated.In favor ofdiscriminatedIdIncludedInCookieName.voidsetCartTtl(Duration cartTtl) Specifies how long the cart cookie should be considered active.voidsetCookieName(String cookieName) Name of the cart cookie.voidsetCookieSameSiteValue(String cookieSameSiteValue) The value to use for the SameSite attribute on the cart cookie.voidsetDiscriminatedIdIncludedInCookieName(Boolean discriminatedIdIncludedInCookieName) Whether the cart discriminator ID should be appended to the cart cookie name.voidtoString()
-
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
Deprecated.In favor ofdiscriminatedIdIncludedInCookieName. The new property is named generically and uses either application or customer context ID based on cart data. If discriminatorIdIncludedInCookieName is not set, the system will fall back to this deprecated property for backward compatibility. This may be removed in a future release.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. -
getDiscriminatedIdIncludedInCookieName
Whether the cart discriminator ID should be appended to the cart cookie name. This should be used if the cookies of different contexts 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. In this instance it's required that a discriminator ID is appended to the cookie name so that we can resolve the correct cart for that context. If this is not set, it will use the value of the deprecated propertyapplicationIdIncludedInCookieName. -
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
@Deprecated public void setApplicationIdIncludedInCookieName(boolean applicationIdIncludedInCookieName) Deprecated.In favor ofdiscriminatedIdIncludedInCookieName. The new property is named generically and uses either application or customer context ID based on cart data. If discriminatorIdIncludedInCookieName is not set, the system will fall back to this deprecated property for backward compatibility. This may be removed in a future release.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. -
setDiscriminatedIdIncludedInCookieName
Whether the cart discriminator ID should be appended to the cart cookie name. This should be used if the cookies of different contexts 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. In this instance it's required that a discriminator ID is appended to the cookie name so that we can resolve the correct cart for that context. If this is not set, it will use the value of the deprecated propertyapplicationIdIncludedInCookieName. -
setCartTtl
Specifies how long the cart cookie should be considered active. -
setJwt
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
discriminatedIdIncludedInCookieName.