Class DeliveryMethodCheckoutStepController

    • Constructor Detail

      • DeliveryMethodCheckoutStepController

        public DeliveryMethodCheckoutStepController()
    • Method Detail

      • enterStep

        @RequestMapping(value="/choose",
                        method=GET)
        public java.lang.String enterStep​(org.springframework.ui.Model model,
                                          org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
                                   throws CMSItemNotFoundException
        Description copied from interface: CheckoutStepController
        Swapping the parameter order might break the validation aspect from working.
        Returns:
        returns the result for entering the checkout step
        Throws:
        CMSItemNotFoundException
      • doSelectDeliveryMode

        @RequestMapping(value="/select",
                        method=GET)
        public java.lang.String doSelectDeliveryMode​(@RequestParam("delivery_method")
                                                     java.lang.String selectedDeliveryMethod)
        This method gets called when the "Use Selected Delivery Method" button is clicked. It sets the selected delivery mode on the checkout facade and reloads the page highlighting the selected delivery Mode.
        Parameters:
        selectedDeliveryMethod - - the id of the delivery mode.
        Returns:
        - a URL to the page to load.
      • back

        @RequestMapping(value="/back",
                        method=GET)
        public java.lang.String back​(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
        Returns:
        checkoutstep link for navigating back
      • next

        @RequestMapping(value="/next",
                        method=GET)
        public java.lang.String next​(org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
        Returns:
        checkoutstep link for navigating next
      • getCheckoutStep

        protected CheckoutStep getCheckoutStep()