org.jboss.messaging.ra
Class JBMTextMessage

java.lang.Object
  extended by org.jboss.messaging.ra.JBMMessage
      extended by org.jboss.messaging.ra.JBMTextMessage
All Implemented Interfaces:
javax.jms.Message, javax.jms.TextMessage

public class JBMTextMessage
extends JBMMessage
implements javax.jms.TextMessage

A wrapper for a message

Version:
$Revision: $
Author:
Adrian Brock, Jesper Pedersen

Field Summary
 
Fields inherited from class org.jboss.messaging.ra.JBMMessage
message, session
 
Fields inherited from interface javax.jms.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Constructor Summary
JBMTextMessage(javax.jms.TextMessage message, JBMSession session)
          Create a new wrapper
 
Method Summary
 java.lang.String getText()
          Get text
 void setText(java.lang.String string)
          Set text
 
Methods inherited from class org.jboss.messaging.ra.JBMMessage
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
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

JBMTextMessage

public JBMTextMessage(javax.jms.TextMessage message,
                      JBMSession session)
Create a new wrapper

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

getText

public java.lang.String getText()
                         throws javax.jms.JMSException
Get text

Specified by:
getText in interface javax.jms.TextMessage
Returns:
The text
Throws:
javax.jms.JMSException - Thrown if an error occurs

setText

public void setText(java.lang.String string)
             throws javax.jms.JMSException
Set text

Specified by:
setText in interface javax.jms.TextMessage
Parameters:
string - The text
Throws:
javax.jms.JMSException - Thrown if an error occurs


Copyright © 2006 JBoss Inc. All Rights Reserved.