org.jboss.resource.adapter.jms
Class JmsTextMessage

java.lang.Object
  extended byorg.jboss.resource.adapter.jms.JmsMessage (src) 
      extended byorg.jboss.resource.adapter.jms.JmsTextMessage
All Implemented Interfaces:
Message (src) , TextMessage (src)

public class JmsTextMessage
extends JmsMessage (src)
implements TextMessage (src)

A wrapper for a message


Field Summary
 
Fields inherited from interface javax.jms.Message (src)
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Constructor Summary
JmsTextMessage(TextMessage (src)  message, JmsSession (src)  session)
          Create a new wrapper
 
Method Summary
 java.lang.String getText()
          Gets the string containing this message's data.
 void setText(java.lang.String string)
          Sets the string containing this message's data.
 
Methods inherited from class org.jboss.resource.adapter.jms.JmsMessage (src)
acknowledge, clearBody, clearProperties, equals, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, hashCode, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, 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

JmsTextMessage

public JmsTextMessage(TextMessage (src)  message,
                      JmsSession (src)  session)
Create a new wrapper

Parameters:
message - the message
session - the session
Method Detail

getText

public java.lang.String getText()
                         throws JMSException (src) 
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
Throws:
JMSException (src) - if the JMS provider fails to get the text due to some internal error.

setText

public void setText(java.lang.String string)
             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:
string - the String containing the message's data
Throws:
JMSException (src) - if the JMS provider fails to set the text due to some internal error.