cgl.narada.jms
Class JmsTextMessage

java.lang.Object
  extended by cgl.narada.jms.JmsMessage
      extended by cgl.narada.jms.JmsTextMessage
All Implemented Interfaces:
JmsDebugFlags, Message, TextMessage

public class JmsTextMessage
extends JmsMessage
implements TextMessage, JmsDebugFlags

This class implements the TextMessage based on its definition contained with the JMS specification.


Field Summary
 
Fields inherited from interface javax.jms.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Fields inherited from interface cgl.narada.jms.JmsDebugFlags
JmsConnection_Debug, JmsDestination_Debug, JmsHeader_Debug, JmsLogger_Debug, JmsMessage_Debug, JmsObjectMessage_Debug, JmsProperties_Debug, JmsTextMessage_Debug, JmsTopic_Debug, JmsTopicAndSelectorVerifier_Debug, JmsTopicConnection_Debug, JmsTopicConnectionFactory_Debug, JmsTopicPublisher_Debug, JmsTopicSession_Debug, JmsTopicSubscriber_Debug
 
Constructor Summary
JmsTextMessage()
           
JmsTextMessage(byte[] textMessageBytes)
           
 
Method Summary
 void clearBody()
           
 byte[] getBytes()
           
 String getText()
           
static void main(String[] args)
           
 void setText(String string)
           
 String toString()
           
 
Methods inherited from class cgl.narada.jms.JmsMessage
acknowledge, clearProperties, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, propertyExists, setBodyAndPropertyAsReadOnly, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty, testReadBody, testWriteBody, testWriteProperties, unmarshallJmsMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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

JmsTextMessage

public JmsTextMessage(byte[] textMessageBytes)

JmsTextMessage

public JmsTextMessage()
Method Detail

setText

public void setText(String string)
             throws JMSException
Specified by:
setText in interface TextMessage
Throws:
JMSException

getText

public String getText()
               throws JMSException
Specified by:
getText in interface TextMessage
Throws:
JMSException

clearBody

public void clearBody()
               throws JMSException
Specified by:
clearBody in interface Message
Overrides:
clearBody in class JmsMessage
Throws:
JMSException

getBytes

public byte[] getBytes()
Overrides:
getBytes in class JmsMessage

toString

public String toString()
Overrides:
toString in class JmsMessage

main

public static void main(String[] args)


For comments and suggestions please send e-mail to The NaradaBrokering Project