Class DefaultPurchaseOrderController

  • All Implemented Interfaces:
    PunchOutController

    @Component
    public class DefaultPurchaseOrderController
    extends java.lang.Object
    implements PunchOutController
    Purchase order controller default implementation.
    • Constructor Detail

      • DefaultPurchaseOrderController

        public DefaultPurchaseOrderController()
    • Method Detail

      • handlePunchOutPurchaseOrderRequest

        @RequestMapping(value="/punchout/cxml/order",
                        method=POST)
        @ResponseBody
        public CXML handlePunchOutPurchaseOrderRequest​(@RequestBody
                                                       CXML requestBody,
                                                       javax.servlet.http.HttpServletRequest request,
                                                       javax.servlet.http.HttpServletResponse response)
        Handles a Order Request from the Punch Out Provider.
        Parameters:
        requestBody - The cXML containing the order to be processed.
        request - The servlet request.
        response - The servlet response.
        Returns:
        A cXML with the Order Response, containing the status of the processing of the order.
      • handleException

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