Class CartState

java.lang.Object
org.broadleafcommerce.core.web.order.CartState

@Component("blCartState") public class CartState extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.broadleafcommerce.core.order.domain.Order
    Gets the current cart based on the current request
    static void
    setCart(org.broadleafcommerce.core.order.domain.Order cart)
    Sets the current cart on the current request

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CartState

      public CartState()
  • Method Details

    • getCart

      public static org.broadleafcommerce.core.order.domain.Order getCart()
      Gets the current cart based on the current request
      Returns:
      the current customer's cart
    • setCart

      public static void setCart(org.broadleafcommerce.core.order.domain.Order cart)
      Sets the current cart on the current request
      Parameters:
      cart - the new cart to set