com.caucho.jms.message
Class TextMessageImpl

java.lang.Object
  extended by com.caucho.jms.message.MessageImpl
      extended by com.caucho.jms.message.TextMessageImpl
All Implemented Interfaces:
java.io.Serializable, Message, TextMessage

public class TextMessageImpl
extends MessageImpl
implements TextMessage

A text message.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.caucho.jms.message.MessageImpl
L, log
 
Fields inherited from interface javax.jms.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Constructor Summary
TextMessageImpl()
           
TextMessageImpl(java.lang.String text)
           
TextMessageImpl(TextMessage msg)
           
TextMessageImpl(TextMessageImpl msg)
           
 
Method Summary
 java.io.InputStream bodyToInputStream()
          Serialize the body to an input stream.
 void clearBody()
          Clears the body.
 MessageImpl copy()
           
protected  void copy(TextMessageImpl newMsg)
           
 java.lang.String getText()
          Returns the message text.
 MessageType getType()
          Returns the type enumeration.
 void readBody(java.io.InputStream is)
          Read the body from an input stream.
 void setText(java.lang.String text)
          Returns the message text.
 void writeBody(java.io.OutputStream os)
          Serialize the body to an output stream.
 
Methods inherited from class com.caucho.jms.message.MessageImpl
acknowledge, checkBodyReadable, checkBodyWriteable, checkHeaderWriteable, checkPropertyWriteable, clearProperties, copy, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getProperties, getPropertyNames, getSequence, getShortProperty, getStringProperty, isReserved, propertiesToInputStream, propertyExists, readProperties, setBodyReadOnly, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setReceive, setSequence, setSession, setShortProperty, setStringProperty, toString, writeProperties
 
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()

TextMessageImpl

public TextMessageImpl(java.lang.String text)

TextMessageImpl

public TextMessageImpl(TextMessage msg)
                throws JMSException
Throws:
JMSException

TextMessageImpl

public TextMessageImpl(TextMessageImpl msg)
Method Detail

getType

public MessageType getType()
Returns the type enumeration.

Overrides:
getType in class MessageImpl

getText

public java.lang.String getText()
                         throws JMSException
Returns the message text.

Specified by:
getText in interface TextMessage
Throws:
JMSException

setText

public void setText(java.lang.String text)
             throws JMSException
Returns the message text.

Specified by:
setText in interface TextMessage
Throws:
JMSException

clearBody

public void clearBody()
               throws JMSException
Clears the body.

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

copy

public MessageImpl copy()
Overrides:
copy in class MessageImpl

copy

protected void copy(TextMessageImpl newMsg)

bodyToInputStream

public java.io.InputStream bodyToInputStream()
                                      throws java.io.IOException
Serialize the body to an input stream.

Overrides:
bodyToInputStream in class MessageImpl
Throws:
java.io.IOException

writeBody

public void writeBody(java.io.OutputStream os)
               throws java.io.IOException
Serialize the body to an output stream.

Overrides:
writeBody in class MessageImpl
Throws:
java.io.IOException

readBody

public void readBody(java.io.InputStream is)
              throws java.io.IOException,
                     JMSException
Read the body from an input stream.

Overrides:
readBody in class MessageImpl
Throws:
java.io.IOException
JMSException