Class CXMLBuilder

java.lang.Object
de.hybris.platform.b2b.punchout.services.CXMLBuilder

public final class CXMLBuilder extends Object
  • Method Details

    • newInstance

      public static CXMLBuilder newInstance()
    • createNewCXML

      protected CXML createNewCXML()
    • generatePayload

      protected String generatePayload()
      Generates a new payload ID in the required format: datetime.process id.random number@hostname. Note: Process ID is skipped as there's no easy way to get it.
      Returns:
      the payload ID
    • findHostName

      protected String findHostName()
      Returns:
      the host name or just 'localhost' if not able to determine it
    • create

      public CXML create()
      Returns:
      the newly created CXML instance
    • withResponseCode

      public CXMLBuilder withResponseCode(String code)
    • withResponseMessage

      public CXMLBuilder withResponseMessage(String message)