public class FlexMessageConverter extends Object implements MessageConverter
MessageConverter
strategy interface that passes Flex Message headers to JMS Message
properties and vice versa.
This particular converter is only concerned with the passing of those header/property values. It simply decorates a
target converter to which it delegates for the actual conversion between a JMS Message and a Flex Message
body. If no target converter is passed to the constructor, then it will create and delegate to a
SimpleMessageConverter
instance by default.
Constructor and Description |
---|
FlexMessageConverter() |
FlexMessageConverter(MessageConverter targetConverter) |
Modifier and Type | Method and Description |
---|---|
Object |
fromMessage(javax.jms.Message message) |
javax.jms.Message |
toMessage(Object object,
javax.jms.Session session) |
public FlexMessageConverter()
public FlexMessageConverter(MessageConverter targetConverter)
public Object fromMessage(javax.jms.Message message) throws javax.jms.JMSException, MessageConversionException
fromMessage
in interface MessageConverter
javax.jms.JMSException
MessageConversionException
public javax.jms.Message toMessage(Object object, javax.jms.Session session) throws javax.jms.JMSException, MessageConversionException
toMessage
in interface MessageConverter
javax.jms.JMSException
MessageConversionException
Copyright © 2014. All rights reserved.