Class DefaultPunchOutSetUpController

  • All Implemented Interfaces:
    PunchOutController

    @Component
    public class DefaultPunchOutSetUpController
    extends java.lang.Object
    implements PunchOutController
    Controller that handles the Punch Out Setup request.
    • Constructor Detail

      • DefaultPunchOutSetUpController

        public DefaultPunchOutSetUpController()
    • Method Detail

      • handlePunchOutSetUpRequest

        @RequestMapping(value="/punchout/cxml/setup",
                        method=POST)
        @ResponseBody
        public CXML handlePunchOutSetUpRequest​(@RequestBody
                                               CXML requestBody)
        Receives a request from the punchout provider and sends it the information to access the hybris site.
        Parameters:
        requestBody - The cXML file with the punchout user requisition.
        Returns:
        A cXML file with the access information.
      • handleException

        @ExceptionHandler(java.lang.Exception.class)
        @ResponseStatus(BAD_REQUEST)
        @ResponseBody
        public CXML handleException​(java.lang.Exception exc)