public interface CartCookieIssuer
Modifier and Type | Method and Description |
---|---|
javax.servlet.http.Cookie |
buildCartCookie(com.broadleafcommerce.cart.client.domain.Cart cart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
since 1.6, use
buildCartResponseCookie(Cart, ContextInfo) |
javax.servlet.http.Cookie |
buildCartExpirationCookie(String applicationId)
Build a cookie meant to remove the cart cookie for the provided application.
|
org.springframework.http.ResponseCookie |
buildCartResponseCookie(com.broadleafcommerce.cart.client.domain.Cart cart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Build a cookie to hold a reference to a cart.
|
boolean |
checkContextMatches(Map<String,Object> cartCookieClaims,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Check if the provided cookie claims match the context.
|
String |
getCartCookieName(String applicationId)
Name of the cart cookie.
|
Optional<String> |
resolveCartId(Map<String,Object> cartCookieClaims)
Resolve the cart id from the provided cookie claims.
|
Map<String,Object> |
verifyAndGetClaims(@NonNull javax.servlet.http.Cookie cartCookie)
Verify the provided cart cookie and get its claims.
|
@Deprecated javax.servlet.http.Cookie buildCartCookie(com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
buildCartResponseCookie(Cart, ContextInfo)
cart
- The cart for which to build a cookie.contextInfo
- Context information around sandbox and multitenant state.org.springframework.http.ResponseCookie buildCartResponseCookie(com.broadleafcommerce.cart.client.domain.Cart cart, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
cart
- The cart for which to build a cookie.contextInfo
- Context information around sandbox and multitenant state.javax.servlet.http.Cookie buildCartExpirationCookie(@Nullable String applicationId)
applicationId
- Application id used to identify which cart cookie to remove.Map<String,Object> verifyAndGetClaims(@NonNull @NonNull javax.servlet.http.Cookie cartCookie)
cartCookie
- The cookie to use for retrieving the claimsOptional<String> resolveCartId(Map<String,Object> cartCookieClaims)
cartCookieClaims
- The cookie claims to use for retrieving the cart id.String getCartCookieName(@Nullable String applicationId)
applicationId
- Application id that may be appended to the cookie name.boolean checkContextMatches(Map<String,Object> cartCookieClaims, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
cartCookieClaims
- The cookie claims to use for retrieving the cart id.contextInfo
- Context information around sandbox and multitenant state.Copyright © 2021. All rights reserved.