public class JmsFrameTranslator extends LegacyFrameTranslator implements BrokerContextAware
FrameTranslator.Helper| Constructor and Description |
|---|
JmsFrameTranslator() |
| Modifier and Type | Method and Description |
|---|---|
ActiveMQMessage |
convertFrame(ProtocolConverter converter,
StompFrame command) |
StompFrame |
convertMessage(ProtocolConverter converter,
ActiveMQMessage message) |
protected ActiveMQMapMessage |
createMapMessage(com.thoughtworks.xstream.io.HierarchicalStreamReader in) |
protected ActiveMQObjectMessage |
createObjectMessage(com.thoughtworks.xstream.io.HierarchicalStreamReader in) |
protected XStream |
createXStream() |
XStream |
getXStream() |
protected String |
marshall(Serializable object,
String transformation)
Marshalls the Object to a string using XML or JSON encoding
|
protected String |
marshallAdvisory(DataStructure ds,
String transformation) |
void |
setBrokerContext(BrokerContext brokerContext) |
void |
setXStream(XStream xStream) |
convertDestination, convertDestination, marshallAdvisorypublic JmsFrameTranslator()
public ActiveMQMessage convertFrame(ProtocolConverter converter, StompFrame command) throws javax.jms.JMSException, ProtocolException
convertFrame in interface FrameTranslatorconvertFrame in class LegacyFrameTranslatorjavax.jms.JMSExceptionProtocolExceptionpublic StompFrame convertMessage(ProtocolConverter converter, ActiveMQMessage message) throws IOException, javax.jms.JMSException
convertMessage in interface FrameTranslatorconvertMessage in class LegacyFrameTranslatorIOExceptionjavax.jms.JMSExceptionprotected String marshall(Serializable object, String transformation) throws javax.jms.JMSException
javax.jms.JMSExceptionprotected ActiveMQObjectMessage createObjectMessage(com.thoughtworks.xstream.io.HierarchicalStreamReader in) throws javax.jms.JMSException
javax.jms.JMSExceptionprotected ActiveMQMapMessage createMapMessage(com.thoughtworks.xstream.io.HierarchicalStreamReader in) throws javax.jms.JMSException
javax.jms.JMSExceptionprotected String marshallAdvisory(DataStructure ds, String transformation)
public XStream getXStream()
public void setXStream(XStream xStream)
protected XStream createXStream()
public void setBrokerContext(BrokerContext brokerContext)
setBrokerContext in interface BrokerContextAwareCopyright © 2005–2017. All rights reserved.