Class DefaultProfileController
- java.lang.Object
-
- de.hybris.platform.b2bpunchoutaddon.controllers.pages.DefaultProfileController
-
- All Implemented Interfaces:
PunchOutController
@Component public class DefaultProfileController extends java.lang.Object implements PunchOutController
Controller to handle a punchout profile transaction.
-
-
Constructor Summary
Constructors Constructor Description DefaultProfileController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PunchOutServicegetPunchOutService()CXMLhandleException(java.lang.Exception exc)CXMLhandleProfileRequest(CXML request)Handles a profile request from the punch out provider.voidsetPunchOutService(PunchOutService punchoutService)
-
-
-
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)
-
getPunchOutService
public PunchOutService getPunchOutService()
-
setPunchOutService
public void setPunchOutService(PunchOutService punchoutService)
-
-