org.jboss.jms
Class TextMessageImpl

java.lang.Object
  extended byorg.jboss.jms.MessageImpl (src) 
      extended byorg.jboss.jms.TextMessageImpl
All Implemented Interfaces:
java.lang.Cloneable, JBossMessage (src) , Message (src) , java.io.Serializable, TextMessage (src)

public class TextMessageImpl
extends MessageImpl (src)
implements TextMessage (src)

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.jms.MessageImpl (src)
body, deliveryId, type
 
Fields inherited from interface javax.jms.Message (src)
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Constructor Summary
TextMessageImpl(java.lang.String text)
           
 
Method Summary
 java.lang.String getText()
          Gets the string containing this message's data.
 void setText(java.lang.String text)
          Sets the string containing this message's data.
 
Methods inherited from class org.jboss.jms.MessageImpl (src)
acknowledge, clearBody, clearProperties, clone, create, generateMessageID, generateTimestamp, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getOrigianClientID, getPropertyNames, getSessionDelegate, getShortProperty, getStringProperty, hasExpired, isLocal, isReadOnly, makeReadOnly, propertyExists, setBooleanProperty, setByteProperty, setDeliveryId, setDoubleProperty, setFloatProperty, setIntProperty, setIsLocal, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setOriginClientID, setReadOnly, setSession, setShortProperty, setStringProperty, throwExceptionIfReadOnly
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jms.Message (src)
acknowledge, clearBody, 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(java.lang.String text)
Method Detail

getText

public java.lang.String getText()
Description copied from interface: TextMessage (src)
Gets the string containing this message's data. The default value is null.

Specified by:
getText in interface TextMessage (src)
Returns:
the String containing the message's data

setText

public void setText(java.lang.String text)
             throws JMSException (src) 
Description copied from interface: TextMessage (src)
Sets the string containing this message's data.

Specified by:
setText in interface TextMessage (src)
Parameters:
text - the String containing the message's data
Throws:
JMSException (src) - if the JMS provider fails to set the text due to some internal error.