org.huihoo.jfox.ms.jms.message
Class TextMessageImpl

java.lang.Object
  extended byorg.huihoo.jfox.ms.jms.message.MessageImpl
      extended byorg.huihoo.jfox.ms.jms.message.TextMessageImpl
All Implemented Interfaces:
javax.jms.Message, java.io.Serializable, javax.jms.TextMessage

public class TextMessageImpl
extends MessageImpl
implements javax.jms.TextMessage, java.io.Serializable

This class provides an implementation of the JMS TextMessage. This message type is used to send a textual string to another java client.This message can be used to transmit any valid java string including XML.

Version:
Revision: 1.1 Date: 2002-11-30 15:45:25
Author:
Peter.Cheng
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface javax.jms.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Constructor Summary
TextMessageImpl()
          Defalut contructor.
 
Method Summary
 void clearBody()
          Clear out the message body.
 java.lang.String getText()
          Return TextMessage body
 void setText(java.lang.String string)
          Set TextMessage body
 java.lang.String toString()
           
 
Methods inherited from class org.huihoo.jfox.ms.jms.message.MessageImpl
acknowledge, clearProperties, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, isBodyModifiable, isPropertiesModifiable, propertyExists, setBodyModifiable, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setPropertiesModifiable, setShortProperty, setStringProperty
 
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

TextMessageImpl

public TextMessageImpl()
Defalut contructor.

Method Detail

setText

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

Specified by:
setText in interface javax.jms.TextMessage
Parameters:
string -
Throws:
javax.jms.JMSException - if the JMS provider fails to set the TextMessage bodyt due to some internal error.
See Also:
TextMessage.setText(String)

getText

public java.lang.String getText()
                         throws javax.jms.JMSException
Return TextMessage body

Specified by:
getText in interface javax.jms.TextMessage
Returns:
text
Throws:
javax.jms.JMSException
See Also:
TextMessage.getText()

clearBody

public void clearBody()
               throws javax.jms.JMSException
Clear out the message body.

Specified by:
clearBody in interface javax.jms.Message
Overrides:
clearBody in class MessageImpl
Throws:
javax.jms.JMSException

toString

public java.lang.String toString()


Copyright © 2002-2003 Open Enterprise Foundation. All Rights Reserved.