Class DefaultPunchOutHeaderGenerator

java.lang.Object
de.hybris.platform.b2b.punchout.actions.outbound.DefaultPunchOutHeaderGenerator

public class DefaultPunchOutHeaderGenerator extends Object
Create the header for a PunchOut message. The Header element contains addressing and authentication information. The Header element is the same regardless of the specific Request or Response within the body of the cXML message.
  • Constructor Details

    • DefaultPunchOutHeaderGenerator

      public DefaultPunchOutHeaderGenerator()
  • Method Details

    • generate

      public Header generate()
    • createFrom

      protected From createFrom(PunchOutSession currentPunchOutSession)
    • createTo

      protected To createTo(PunchOutSession currentPunchOutSession)
    • createSender

      protected Sender createSender(PunchOutSession currentPunchOutSession)
    • convertOrganizationsToCredentials

      protected List<Credential> convertOrganizationsToCredentials(List<Organization> organizations)
      this method will convert an Organization into a cmxl credential ignoring the shared secret.
      Parameters:
      organizations - intended to be converted.
      Returns:
      the resulting list of credentials.
    • getPunchOutSessionService

      protected PunchOutSessionService getPunchOutSessionService()
    • setPunchOutSessionService

      public void setPunchOutSessionService(PunchOutSessionService punchOutSessionService)