Class DefaultProfileController

  • All Implemented Interfaces:
    PunchOutController

    @Component
    public class DefaultProfileController
    extends java.lang.Object
    implements PunchOutController
    Controller to handle a punchout profile transaction.
    • Constructor Detail

      • DefaultProfileController

        public DefaultProfileController()
    • Method Detail

      • handleProfileRequest

        @RequestMapping(value="/punchout/cxml/profile",
                        method=POST)
        @ResponseBody
        public CXML handleProfileRequest​(@RequestBody
                                         CXML request)
        Handles a profile request from the punch out provider.
        Parameters:
        request - The cXML with the request information.
        Returns:
        A cXML with the profile response.
      • handleException

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

        public void setPunchOutService​(PunchOutService punchoutService)