Class CXMLBuilder


  • public final class CXMLBuilder
    extends java.lang.Object
    • Method Detail

      • newInstance

        public static CXMLBuilder newInstance()
      • createNewCXML

        protected CXML createNewCXML()
      • generatePayload

        protected java.lang.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 java.lang.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​(java.lang.String code)
      • withResponseMessage

        public CXMLBuilder withResponseMessage​(java.lang.String message)