org.stringtree.jms
Class InMemoryTextMessage

java.lang.Object
  extended by org.stringtree.jms.InMemoryMessage
      extended by org.stringtree.jms.InMemoryTextMessage
All Implemented Interfaces:
javax.jms.Message, javax.jms.TextMessage

public class InMemoryTextMessage
extends InMemoryMessage
implements javax.jms.TextMessage


Field Summary
private  java.lang.String text
           
 
Fields inherited from interface javax.jms.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Constructor Summary
InMemoryTextMessage()
           
InMemoryTextMessage(java.lang.String text)
           
 
Method Summary
 void clearBody()
           
 java.lang.Object clone()
           
 java.lang.String getText()
           
 void setText(java.lang.String text)
           
 
Methods inherited from class org.stringtree.jms.InMemoryMessage
acknowledge, clearProperties, cloneFields, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jms.Message
acknowledge, clearProperties, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty
 

Field Detail

text

private java.lang.String text
Constructor Detail

InMemoryTextMessage

public InMemoryTextMessage(java.lang.String text)

InMemoryTextMessage

public InMemoryTextMessage()
Method Detail

setText

public void setText(java.lang.String text)
Specified by:
setText in interface javax.jms.TextMessage

getText

public java.lang.String getText()
Specified by:
getText in interface javax.jms.TextMessage

clone

public java.lang.Object clone()
Specified by:
clone in class InMemoryMessage

clearBody

public void clearBody()
               throws javax.jms.JMSException
Specified by:
clearBody in interface javax.jms.Message
Specified by:
clearBody in class InMemoryMessage
Throws:
javax.jms.JMSException