org.mockejb.jms
Class TextMessageImpl

java.lang.Object
  extended byorg.mockejb.jms.MessageImpl
      extended byorg.mockejb.jms.TextMessageImpl
All Implemented Interfaces:
javax.jms.Message, javax.jms.TextMessage

public class TextMessageImpl
extends MessageImpl
implements javax.jms.TextMessage

TextMessage implementation.

Author:
Dimitar Gospodinov

Field Summary
 
Fields inherited from interface javax.jms.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Constructor Summary
TextMessageImpl()
          Creates empty TextMessage
TextMessageImpl(java.lang.String text)
          Creates new TextMessageImpl initialized with text
TextMessageImpl(javax.jms.TextMessage msg)
          Creates new TextMessageImpl initialized with the text from msg
 
Method Summary
 void clearBody()
           
 java.lang.String getText()
           
 void setText(java.lang.String text)
           
 
Methods inherited from class org.mockejb.jms.MessageImpl
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, setPropertiesNotWriteable, setShortProperty, setStringProperty
 
Methods inherited from class java.lang.Object
clone, 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
 

Constructor Detail

TextMessageImpl

public TextMessageImpl(javax.jms.TextMessage msg)
                throws javax.jms.JMSException
Creates new TextMessageImpl initialized with the text from msg

Parameters:
msg -
Throws:
javax.jms.JMSException

TextMessageImpl

public TextMessageImpl()
Creates empty TextMessage


TextMessageImpl

public TextMessageImpl(java.lang.String text)
                throws javax.jms.JMSException
Creates new TextMessageImpl initialized with text

Parameters:
text -
Method Detail

clearBody

public void clearBody()
               throws javax.jms.JMSException
Specified by:
clearBody in interface javax.jms.Message
Overrides:
clearBody in class MessageImpl
Throws:
javax.jms.JMSException
See Also:
Message.clearBody()

setText

public void setText(java.lang.String text)
             throws javax.jms.JMSException
Specified by:
setText in interface javax.jms.TextMessage
Throws:
javax.jms.JMSException
See Also:
TextMessage.setText(java.lang.String)

getText

public java.lang.String getText()
                         throws javax.jms.JMSException
Specified by:
getText in interface javax.jms.TextMessage
Throws:
javax.jms.JMSException
See Also:
TextMessage.getText()