Class DefaultPunchOutController

    • Constructor Detail

      • DefaultPunchOutController

        public DefaultPunchOutController()
    • Method Detail

      • handlePunchOutSession

        @RequestMapping(value="/punchout/cxml/session",
                        method=GET)
        public void handlePunchOutSession​(@RequestParam
                                          java.lang.String key,
                                          @RequestParam("sid")
                                          java.lang.String sessionId,
                                          javax.servlet.http.HttpServletRequest request,
                                          javax.servlet.http.HttpServletResponse response)
        Used to create a new punch out session by authenticating a punch out user.
        Parameters:
        key - Secured key that have been exchanged with the punch out provider (or security hub).
        sessionId - the hybris session ID
      • printSessionInfo

        protected java.lang.String printSessionInfo​(PunchOutSession punchoutSession)
      • placeRequisition

        @RequestMapping(value="/punchout/cxml/requisition",
                        method=GET)
        public java.lang.String placeRequisition​(org.springframework.ui.Model model,
                                                 javax.servlet.http.HttpServletRequest request)
                                          throws InvalidCartException,
                                                 CMSItemNotFoundException
        Places a requisition (POST) to the punchout provider sending the information of the cart.
        Returns:
        Redirect to cart page.
        Throws:
        InvalidCartException
        CMSItemNotFoundException
      • handleException

        @ExceptionHandler(java.lang.Exception.class)
        public java.lang.String handleException​(java.lang.Exception e,
                                                javax.servlet.http.HttpServletRequest request)
      • setPunchOutService

        public void setPunchOutService​(PunchOutService punchoutService)