Class PunchOutController

java.lang.Object
de.hybris.platform.b2bpunchoutocc.controllers.PunchOutController

@Controller @RequestMapping("/{baseSiteId}/punchout/cxml") public class PunchOutController extends Object
Controller to handle a PunchOut Transactions.
  • Constructor Details

    • PunchOutController

      public PunchOutController()
  • Method Details

    • createPunchOutProfileRequest

      @PostMapping(value="/profile", consumes={"application/xml","text/xml"}, produces={"application/xml","text/xml"}) @ResponseBody @PunchOutAuthentication @SecurePortalUnauthenticatedAccess public CXML createPunchOutProfileRequest(@RequestBody CXML request, @RequestHeader("host") String host, @PathVariable String baseSiteId)
      Handles a profile request from the punch out provider.
      Parameters:
      request - The cXML with the request information.
      Returns:
      A cXML with the profile response.
    • createPunchOutPurchaseOrderRequest

      @PostMapping(value="/order", consumes={"application/xml","text/xml"}, produces={"application/xml","text/xml"}) @ResponseBody @PunchOutAuthentication @SecurePortalUnauthenticatedAccess public CXML createPunchOutPurchaseOrderRequest(@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.
    • createPunchOutSetUpRequest

      @PostMapping(value="/setup", consumes={"application/xml","text/xml"}, produces={"application/xml","text/xml"}) @ResponseBody @PunchOutAuthentication @SecurePortalUnauthenticatedAccess public CXML createPunchOutSetUpRequest(@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.
    • getPunchOutService

      public PunchOutService getPunchOutService()
    • setPunchOutService

      public void setPunchOutService(PunchOutService punchoutService)