com.elasticpath.sfweb.controller.impl
Class AddToCartControllerImpl

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.context.support.WebApplicationObjectSupport
          extended by org.springframework.web.servlet.support.WebContentGenerator
              extended by org.springframework.web.servlet.mvc.AbstractController
                  extended by org.springframework.web.servlet.mvc.BaseCommandController
                      extended by com.elasticpath.sfweb.controller.impl.AbstractEpControllerImpl
                          extended by com.elasticpath.sfweb.controller.impl.AddToCartControllerImpl
All Implemented Interfaces:
EpController, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.mvc.Controller

public class AddToCartControllerImpl
extends AbstractEpControllerImpl

The Spring MVC controller for adding a product to the shopping cart.


Field Summary
 
Fields inherited from class org.springframework.web.servlet.mvc.BaseCommandController
DEFAULT_COMMAND_NAME
 
Fields inherited from class org.springframework.web.servlet.support.WebContentGenerator
METHOD_GET, METHOD_HEAD, METHOD_POST
 
Constructor Summary
AddToCartControllerImpl()
           
 
Method Summary
 void setCartView(java.lang.String cartView)
          Set the cart view to be displayed when adding to or updating the cart.
 void setCheckoutView(java.lang.String checkoutView)
          Set the checkout view to be displayed when updating an item during the checkout.
 void setProductLoadTuner(ProductLoadTuner productLoadTuner)
          Set the load tuner to be used for retrieving products to add to the cart.
 void setProductService(ProductService productService)
          Sets the product service.
 void setShoppingCartService(ShoppingCartService shoppingCartService)
          Sets the shopping cart service.
 
Methods inherited from class com.elasticpath.sfweb.controller.impl.AbstractEpControllerImpl
getElasticPath, getRequestHelper, setElasticPath, setRequestHelper
 
Methods inherited from class org.springframework.web.servlet.mvc.BaseCommandController
getBindingErrorProcessor, getCommandClass, getCommandName, getMessageCodesResolver, getPropertyEditorRegistrars, getValidator, getValidators, isValidateOnBinding, setBindingErrorProcessor, setCommandClass, setCommandName, setMessageCodesResolver, setPropertyEditorRegistrar, setPropertyEditorRegistrars, setValidateOnBinding, setValidator, setValidators
 
Methods inherited from class org.springframework.web.servlet.mvc.AbstractController
handleRequest, isSynchronizeOnSession, setSynchronizeOnSession
 
Methods inherited from class org.springframework.web.servlet.support.WebContentGenerator
getCacheSeconds, getSupportedMethods, isRequireSession, isUseCacheControlHeader, isUseExpiresHeader, setCacheSeconds, setRequireSession, setSupportedMethods, setUseCacheControlHeader, setUseExpiresHeader
 
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
setServletContext
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, setApplicationContext
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.web.servlet.mvc.Controller
handleRequest
 

Constructor Detail

AddToCartControllerImpl

public AddToCartControllerImpl()
Method Detail

setCartView

public final void setCartView(java.lang.String cartView)
Set the cart view to be displayed when adding to or updating the cart.

Parameters:
cartView - the cart view name.

setCheckoutView

public final void setCheckoutView(java.lang.String checkoutView)
Set the checkout view to be displayed when updating an item during the checkout.

Parameters:
checkoutView - the checkout view name

setProductLoadTuner

public void setProductLoadTuner(ProductLoadTuner productLoadTuner)
Set the load tuner to be used for retrieving products to add to the cart.

Parameters:
productLoadTuner - the ProductLoadTuner.

setProductService

public void setProductService(ProductService productService)
Sets the product service.

Parameters:
productService - the product service

setShoppingCartService

public void setShoppingCartService(ShoppingCartService shoppingCartService)
Sets the shopping cart service.

Parameters:
shoppingCartService - the shopping cart service