Class TextMessage

Extends Message.

A TextMessage object is used to send a message containing a java.lang.String. It inherits from the Message interface and adds a text message body.

This message type can be used to transport text-based messages, including those with XML content.

When a client receives a TextMessage, it is in read-only mode. If a client attempts to write to the message at this point, a MessageNotWriteableException is thrown. If clearBody is called, the message can now be both read from and written to.


Constructor Summary
TextMessage()
            A TextMessage object is used to send a message containing a java.lang.String.
 
Method Summary
 String getText()
           Gets the string containing this message's data.
 void setText(val)
           Sets the string containing this message's data.
 
Methods inherited from class Message
getJMSMessageID()
setJMSMessageID(id)
getJMSTimestamp()
setJMSTimestamp(timestamp)
setJMSCorrelationID(correlationID)
getJMSCorrelationID()
getJMSReplyTo()
setJMSReplyTo(replyTo)
getJMSDestination()
setJMSDestination(destination)
getJMSDeliveryMode()
setJMSDeliveryMode(deliveryMode)
getJMSRedelivered()
setJMSRedelivered(redelivered)
getJMSType()
setJMSType(type)
getJMSExpiration()
setJMSExpiration(expiration)
getJMSPriority()
setJMSPriority(priority)
clearProperties()
propertyExists(name)
getBooleanProperty(name)
getByteProperty(name)
getShortProperty(name)
getIntProperty(name)
getLongProperty(name)
getFloatProperty(name)
getDoubleProperty(name)
getStringProperty(name)
getObjectProperty(name)
setBooleanProperty(name, value)
setByteProperty(name, value)
setShortProperty(name, value)
setIntProperty(name, value)
setLongProperty(name, value)
setFloatProperty(name, value)
setDoubleProperty(name, value)
setStringProperty(name, value)
setObjectProperty(name, value)
getPropertyNames()
acknowledge()
clearBody()


Constructor Detail

TextMessage

TextMessage()

Method Detail

getText

String getText()

setText

void setText(val)