Class JmsMapSinglePayloadConverter

  • All Implemented Interfaces:
    org.ikasan.spec.component.transformation.Converter<javax.jms.MapMessage,​byte[]>

    public class JmsMapSinglePayloadConverter
    extends java.lang.Object
    implements org.ikasan.spec.component.transformation.Converter<javax.jms.MapMessage,​byte[]>
    Extract a single payload XML from the incoming JMS Map message from i8 or i7 formats.
    Author:
    Ikasan Development Team.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] convert​(javax.jms.MapMessage mapMessage)
      Convert the incoming mapMessage into the first single payload content.
      protected byte[] getMessageContent​(javax.jms.MapMessage mapMessage, java.lang.String payloadContent)
      Extract the given payloadContent literal from the incoming mapMessage.
      • Methods inherited from class java.lang.Object

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

      • JmsMapSinglePayloadConverter

        public JmsMapSinglePayloadConverter()
    • Method Detail

      • convert

        public byte[] convert​(javax.jms.MapMessage mapMessage)
                       throws org.ikasan.spec.component.transformation.TransformationException
        Convert the incoming mapMessage into the first single payload content.
        Specified by:
        convert in interface org.ikasan.spec.component.transformation.Converter<javax.jms.MapMessage,​byte[]>
        Parameters:
        mapMessage -
        Returns:
        byte[]
        Throws:
        org.ikasan.spec.component.transformation.TransformationException
      • getMessageContent

        protected byte[] getMessageContent​(javax.jms.MapMessage mapMessage,
                                           java.lang.String payloadContent)
                                    throws javax.jms.JMSException
        Extract the given payloadContent literal from the incoming mapMessage.
        Parameters:
        mapMessage -
        payloadContent -
        Returns:
        Throws:
        javax.jms.JMSException