Class JmsMapSinglePayloadTextConverter

  • All Implemented Interfaces:
    org.ikasan.spec.component.transformation.Converter<javax.jms.MapMessage,​java.lang.String>

    public class JmsMapSinglePayloadTextConverter
    extends java.lang.Object
    implements org.ikasan.spec.component.transformation.Converter<javax.jms.MapMessage,​java.lang.String>
    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
      java.lang.String convert​(javax.jms.MapMessage mapMessage)
      Convert the incoming mapMessage into the first single payload content.
      protected java.lang.String 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

      • JmsMapSinglePayloadTextConverter

        public JmsMapSinglePayloadTextConverter()
    • Method Detail

      • convert

        public java.lang.String 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,​java.lang.String>
        Parameters:
        mapMessage -
        Returns:
        byte[]
        Throws:
        org.ikasan.spec.component.transformation.TransformationException
      • getMessageContent

        protected java.lang.String 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