Class JmsMessageConverter
- java.lang.Object
-
- org.ikasan.component.endpoint.jms.consumer.JmsMessageConverter
-
public class JmsMessageConverter extends java.lang.ObjectUtility converter for JMS Messages where we simply want to extract the payload content.- Author:
- Ikasan Development Team
-
-
Constructor Summary
Constructors Constructor Description JmsMessageConverter()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.ObjectextractContent(javax.jms.Message message)For the given Message try to extract the actual payload content and return as that content type.
-
-
-
Method Detail
-
extractContent
public static java.lang.Object extractContent(javax.jms.Message message) throws javax.jms.JMSExceptionFor the given Message try to extract the actual payload content and return as that content type. This supports the following JMS Message conversions, TextMessage -> String MapMessage -> Map ObjectMessage -> Object All other types are simply returned as their native JMS message.- Parameters:
message-- Returns:
- Throws:
javax.jms.JMSException
-
-