Home » activemq-parent-5.3.1-source-release » org.apache » activemq » util » xstream » [javadoc | source]
org.apache.activemq.util.xstream
public class: XStreamMessageTransformer [javadoc | source]
java.lang.Object
   org.apache.activemq.MessageTransformerSupport
      org.apache.activemq.util.xstream.XStreamMessageTransformer

All Implemented Interfaces:
    MessageTransformer

Deprecated! as - of 5.3.0 release replaced by org.apache.activemq.util.oxm.XStreamMessageTransformer

Transforms object messages to text messages and vice versa using XStream
Nested Class Summary:
public enum class  XStreamMessageTransformer.MessageTransform  Defines the type of transformation. If XML (default), - producer transformation transforms from Object to XML. - consumer transformation transforms from XML to Object. If OBJECT, - producer transformation transforms from XML to Object. - consumer transformation transforms from Object to XML. If ADAPTIVE, - producer transformation transforms from Object to XML, or XML to Object depending on the type of the original message - consumer transformation transforms from XML to Object, or Object to XML depending on the type of the original message 
Field Summary
protected  MessageTransform transformType     
Constructor:
 public XStreamMessageTransformer() 
 public XStreamMessageTransformer(MessageTransform transformType) 
Method from org.apache.activemq.util.xstream.XStreamMessageTransformer Summary:
consumerTransform,   createXStream,   getStreamDriver,   getTransformType,   getXStream,   marshall,   objectToText,   producerTransform,   setStreamDriver,   setTransformType,   setXStream,   textToObject,   unmarshall
Methods from org.apache.activemq.MessageTransformerSupport:
copyProperties
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.activemq.util.xstream.XStreamMessageTransformer Detail:
 public Message consumerTransform(Session session,
    MessageConsumer consumer,
    Message message) throws JMSException 
      Deprecated!
 protected XStream createXStream() 
      Deprecated!
 public HierarchicalStreamDriver getStreamDriver() 
      Deprecated!
 public MessageTransform getTransformType() 
      Deprecated!
 public XStream getXStream() 
      Deprecated!
 protected String marshall(Session session,
    ObjectMessage objectMessage) throws JMSException 
      Deprecated!
    Marshalls the Object in the ObjectMessage to a string using XML encoding
 protected TextMessage objectToText(Session session,
    ObjectMessage objectMessage) throws JMSException 
      Deprecated!
 public Message producerTransform(Session session,
    MessageProducer producer,
    Message message) throws JMSException 
      Deprecated!
 public  void setStreamDriver(HierarchicalStreamDriver streamDriver) 
      Deprecated!
 public  void setTransformType(MessageTransform transformType) 
      Deprecated!
 public  void setXStream(XStream xStream) 
      Deprecated!
 protected ObjectMessage textToObject(Session session,
    TextMessage textMessage) throws JMSException 
      Deprecated!
 protected Object unmarshall(Session session,
    TextMessage textMessage) throws JMSException 
      Deprecated!
    Unmarshalls the XML encoded message in the TextMessage to an Object