org.fusesource.stompjms.channel
Class StompTranslator
java.lang.Object
org.fusesource.stompjms.channel.StompTranslator
public class StompTranslator
- extends java.lang.Object
Frame translator implementation that uses XStream to convert messages to and
from XML and JSON
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StompTranslator
public StompTranslator()
getDestination
public static StompJmsDestination getDestination(StompFrame frame)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
getReplyTo
public static StompJmsDestination getReplyTo(StompFrame frame)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
readObjectFromString
public static java.lang.Object readObjectFromString(java.lang.String text)
readObjectFromBuffer
public static java.lang.Object readObjectFromBuffer(org.fusesource.hawtbuf.Buffer buffer)
writeStringFromObject
public static java.lang.String writeStringFromObject(java.lang.Object object)
writeBufferFromObject
public static org.fusesource.hawtbuf.Buffer writeBufferFromObject(java.lang.Object object)
convert
public static StompFrame convert(StompJmsMessage message)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
convert
public static StompJmsMessage convert(StompFrame frame)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
copyJmsHeaders
public static void copyJmsHeaders(StompFrame from,
StompJmsMessage to)
throws javax.jms.JMSException
- Throws:
javax.jms.JMSException
getJmsHeaders
public static java.util.Map<java.lang.String,java.lang.Object> getJmsHeaders(StompFrame frame)
copyJmsHeaders
public static void copyJmsHeaders(StompJmsMessage from,
StompFrame to)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2010-2011 FuseSource, Corp.. All Rights Reserved.