com.elasticpath.sfweb.controller.impl
Class ShoppingCartControllerImpl

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 org.springframework.web.servlet.mvc.AbstractFormController
                          extended by org.springframework.web.servlet.mvc.SimpleFormController
                              extended by com.elasticpath.sfweb.controller.impl.AbstractEpFormController
                                  extended by com.elasticpath.sfweb.controller.impl.ShoppingCartControllerImpl
All Implemented Interfaces:
EpController, org.springframework.context.ApplicationContextAware, org.springframework.web.context.ServletContextAware, org.springframework.web.servlet.mvc.Controller

public class ShoppingCartControllerImpl
extends AbstractEpFormController

The Spring MVC controller for the shopping cart page.


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
ShoppingCartControllerImpl()
           
 
Method Summary
 java.lang.String getCheckoutView()
          Get the checkout view name.
 java.lang.String getOnePageView()
           
 java.lang.String getShoppingCartView()
          Get the Shopping Cart View view name.
 void setCheckoutView(java.lang.String checkoutView)
          Set the checkout view.
 void setOnePageView(java.lang.String onePageView)
           
 void setShippingServiceLevelService(ShippingServiceLevelService shippingServiceLevelService)
          Set the ShippingServiceLevelService singleton to retrieve the country/subcountry map with shipping service configured.
 void setShoppingCartService(ShoppingCartService shoppingCartService)
          Sets the shopping cart service.
 void setShoppingCartView(java.lang.String shoppingCartView)
          Set the checkout view.
 
Methods inherited from class com.elasticpath.sfweb.controller.impl.AbstractEpFormController
getElasticPath, getRequestHelper, setElasticPath, setRequestHelper
 
Methods inherited from class org.springframework.web.servlet.mvc.SimpleFormController
getFormView, getSuccessView, setFormView, setSuccessView
 
Methods inherited from class org.springframework.web.servlet.mvc.AbstractFormController
isBindOnNewForm, isSessionForm, setBindOnNewForm, setSessionForm
 
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

ShoppingCartControllerImpl

public ShoppingCartControllerImpl()
Method Detail

getCheckoutView

public java.lang.String getCheckoutView()
Get the checkout view name.

Returns:
the checkout view

getOnePageView

public java.lang.String getOnePageView()
Returns:
the onePageView

getShoppingCartView

public java.lang.String getShoppingCartView()
Get the Shopping Cart View view name.

Returns:
the Shopping Cart View

setCheckoutView

public void setCheckoutView(java.lang.String checkoutView)
Set the checkout view.

Parameters:
checkoutView - the checkout view

setOnePageView

public void setOnePageView(java.lang.String onePageView)
Parameters:
onePageView - the onePageView to set

setShippingServiceLevelService

public void setShippingServiceLevelService(ShippingServiceLevelService shippingServiceLevelService)
Set the ShippingServiceLevelService singleton to retrieve the country/subcountry map with shipping service configured.

Parameters:
shippingServiceLevelService - the shippingServiceLevelService instance

setShoppingCartService

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

Parameters:
shoppingCartService - the shopping cart service

setShoppingCartView

public void setShoppingCartView(java.lang.String shoppingCartView)
Set the checkout view.

Parameters:
shoppingCartView - the ShoppingCart View