Class XMLMessageExporter


  • public class XMLMessageExporter
    extends java.lang.Object
    This is an Utility class that will import the outputs in XML format.
    • Constructor Summary

      Constructors 
      Constructor Description
      XMLMessageExporter​(javax.xml.stream.XMLStreamWriter xmlWriter)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.xml.stream.XMLStreamWriter getRawXMLWriter()  
      void printLargeMessageBody​(org.apache.activemq.artemis.api.core.Message message)  
      void printMessageAttributes​(org.apache.activemq.artemis.api.core.ICoreMessage message)  
      void printMessageBody​(org.apache.activemq.artemis.api.core.Message message, boolean encodeTextMessageUTF8)  
      void printMessageProperties​(org.apache.activemq.artemis.api.core.Message message)  
      void printMessageQueues​(java.util.List<java.lang.String> queues)  
      void printSingleMessageAsXML​(org.apache.activemq.artemis.api.core.ICoreMessage message, java.util.List<java.lang.String> queues, boolean encodeTextUTF8)  
      • Methods inherited from class java.lang.Object

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

      • XMLMessageExporter

        public XMLMessageExporter​(javax.xml.stream.XMLStreamWriter xmlWriter)
    • Method Detail

      • getRawXMLWriter

        public javax.xml.stream.XMLStreamWriter getRawXMLWriter()
      • printSingleMessageAsXML

        public void printSingleMessageAsXML​(org.apache.activemq.artemis.api.core.ICoreMessage message,
                                            java.util.List<java.lang.String> queues,
                                            boolean encodeTextUTF8)
                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • printMessageBody

        public void printMessageBody​(org.apache.activemq.artemis.api.core.Message message,
                                     boolean encodeTextMessageUTF8)
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • printLargeMessageBody

        public void printLargeMessageBody​(org.apache.activemq.artemis.api.core.Message message)
                                   throws javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.stream.XMLStreamException
      • printMessageQueues

        public void printMessageQueues​(java.util.List<java.lang.String> queues)
                                throws javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.stream.XMLStreamException
      • printMessageProperties

        public void printMessageProperties​(org.apache.activemq.artemis.api.core.Message message)
                                    throws javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.stream.XMLStreamException
      • printMessageAttributes

        public void printMessageAttributes​(org.apache.activemq.artemis.api.core.ICoreMessage message)
                                    throws javax.xml.stream.XMLStreamException
        Throws:
        javax.xml.stream.XMLStreamException