Class XmlDataExporterUtil


  • public class XmlDataExporterUtil
    extends java.lang.Object
    Common utility methods to help with XML message conversion
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String convertProperty​(java.lang.Object value)  
      protected static java.lang.String encode​(byte[] data)  
      static java.lang.String encodeMessageBodyBase64​(org.apache.activemq.artemis.api.core.Message message)
      Base64 encode a ServerMessage body into the proper XML format
      static java.lang.String getMessagePrettyType​(byte rawType)  
      static java.lang.String getPropertyType​(java.lang.Object value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XmlDataExporterUtil

        public XmlDataExporterUtil()
    • Method Detail

      • convertProperty

        public static java.lang.String convertProperty​(java.lang.Object value)
      • getPropertyType

        public static java.lang.String getPropertyType​(java.lang.Object value)
      • getMessagePrettyType

        public static java.lang.String getMessagePrettyType​(byte rawType)
      • encodeMessageBodyBase64

        public static java.lang.String encodeMessageBodyBase64​(org.apache.activemq.artemis.api.core.Message message)
                                                        throws java.lang.Exception
        Base64 encode a ServerMessage body into the proper XML format
        Throws:
        java.lang.Exception
      • encode

        protected static java.lang.String encode​(byte[] data)