org.apache.activemq.util.xstream
Class XStreamMessageTransformer

java.lang.Object
  extended by org.apache.activemq.MessageTransformerSupport
      extended by org.apache.activemq.util.xstream.XStreamMessageTransformer
All Implemented Interfaces:
MessageTransformer

Deprecated. as of 5.3.0 release replaced by XStreamMessageTransformer

@Deprecated
public class XStreamMessageTransformer
extends MessageTransformerSupport

Transforms object messages to text messages and vice versa using XStream


Nested Class Summary
static class XStreamMessageTransformer.MessageTransform
          Deprecated. Defines the type of transformation.
 
Field Summary
protected  XStreamMessageTransformer.MessageTransform transformType
          Deprecated.  
 
Constructor Summary
XStreamMessageTransformer()
          Deprecated.  
XStreamMessageTransformer(XStreamMessageTransformer.MessageTransform transformType)
          Deprecated.  
 
Method Summary
 javax.jms.Message consumerTransform(javax.jms.Session session, javax.jms.MessageConsumer consumer, javax.jms.Message message)
          Deprecated. Transforms the given message inside the consumer before being dispatched to the client code
protected  com.thoughtworks.xstream.XStream createXStream()
          Deprecated.  
 com.thoughtworks.xstream.io.HierarchicalStreamDriver getStreamDriver()
          Deprecated.  
 XStreamMessageTransformer.MessageTransform getTransformType()
          Deprecated.  
 com.thoughtworks.xstream.XStream getXStream()
          Deprecated.  
protected  java.lang.String marshall(javax.jms.Session session, javax.jms.ObjectMessage objectMessage)
          Deprecated. Marshalls the Object in the ObjectMessage to a string using XML encoding
protected  javax.jms.TextMessage objectToText(javax.jms.Session session, javax.jms.ObjectMessage objectMessage)
          Deprecated. Transforms an incoming ObjectMessage to an XML encoded TextMessage
 javax.jms.Message producerTransform(javax.jms.Session session, javax.jms.MessageProducer producer, javax.jms.Message message)
          Deprecated. Transforms the given message inside the producer before it is sent to the JMS bus.
 void setStreamDriver(com.thoughtworks.xstream.io.HierarchicalStreamDriver streamDriver)
          Deprecated.  
 void setTransformType(XStreamMessageTransformer.MessageTransform transformType)
          Deprecated.  
 void setXStream(com.thoughtworks.xstream.XStream xStream)
          Deprecated.  
protected  javax.jms.ObjectMessage textToObject(javax.jms.Session session, javax.jms.TextMessage textMessage)
          Deprecated. Transforms an incoming XML encoded TextMessage to an ObjectMessage
protected  java.lang.Object unmarshall(javax.jms.Session session, javax.jms.TextMessage textMessage)
          Deprecated. Unmarshalls the XML encoded message in the TextMessage to an Object
 
Methods inherited from class org.apache.activemq.MessageTransformerSupport
copyProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

transformType

protected XStreamMessageTransformer.MessageTransform transformType
Deprecated. 
Constructor Detail

XStreamMessageTransformer

public XStreamMessageTransformer()
Deprecated. 

XStreamMessageTransformer

public XStreamMessageTransformer(XStreamMessageTransformer.MessageTransform transformType)
Deprecated. 
Method Detail

consumerTransform

public javax.jms.Message consumerTransform(javax.jms.Session session,
                                           javax.jms.MessageConsumer consumer,
                                           javax.jms.Message message)
                                    throws javax.jms.JMSException
Deprecated. 
Description copied from interface: MessageTransformer
Transforms the given message inside the consumer before being dispatched to the client code

Throws:
javax.jms.JMSException

producerTransform

public javax.jms.Message producerTransform(javax.jms.Session session,
                                           javax.jms.MessageProducer producer,
                                           javax.jms.Message message)
                                    throws javax.jms.JMSException
Deprecated. 
Description copied from interface: MessageTransformer
Transforms the given message inside the producer before it is sent to the JMS bus.

Throws:
javax.jms.JMSException

getXStream

public com.thoughtworks.xstream.XStream getXStream()
Deprecated. 

setXStream

public void setXStream(com.thoughtworks.xstream.XStream xStream)
Deprecated. 

getStreamDriver

public com.thoughtworks.xstream.io.HierarchicalStreamDriver getStreamDriver()
Deprecated. 

setStreamDriver

public void setStreamDriver(com.thoughtworks.xstream.io.HierarchicalStreamDriver streamDriver)
Deprecated. 

createXStream

protected com.thoughtworks.xstream.XStream createXStream()
Deprecated. 

getTransformType

public XStreamMessageTransformer.MessageTransform getTransformType()
Deprecated. 

setTransformType

public void setTransformType(XStreamMessageTransformer.MessageTransform transformType)
Deprecated. 

textToObject

protected javax.jms.ObjectMessage textToObject(javax.jms.Session session,
                                               javax.jms.TextMessage textMessage)
                                        throws javax.jms.JMSException
Deprecated. 
Transforms an incoming XML encoded TextMessage to an ObjectMessage

Parameters:
session - - JMS session currently being used
textMessage - - text message to transform to object message
Returns:
ObjectMessage
Throws:
javax.jms.JMSException

objectToText

protected javax.jms.TextMessage objectToText(javax.jms.Session session,
                                             javax.jms.ObjectMessage objectMessage)
                                      throws javax.jms.JMSException
Deprecated. 
Transforms an incoming ObjectMessage to an XML encoded TextMessage

Parameters:
session - - JMS session currently being used
objectMessage - - object message to transform to text message
Returns:
XML encoded TextMessage
Throws:
javax.jms.JMSException

marshall

protected java.lang.String marshall(javax.jms.Session session,
                                    javax.jms.ObjectMessage objectMessage)
                             throws javax.jms.JMSException
Deprecated. 
Marshalls the Object in the ObjectMessage to a string using XML encoding

Throws:
javax.jms.JMSException

unmarshall

protected java.lang.Object unmarshall(javax.jms.Session session,
                                      javax.jms.TextMessage textMessage)
                               throws javax.jms.JMSException
Deprecated. 
Unmarshalls the XML encoded message in the TextMessage to an Object

Throws:
javax.jms.JMSException


Copyright © 2005-2011 FuseSource, Corp.. All Rights Reserved.