站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 messaging API Documentation 英文版文档

SpyTextMessage (JBoss Messaging API) - JBoss 4.0.1 sp1 messaging API Documentation 英文版文档


org.jboss.mq
Class SpyTextMessage

java.lang.Object
  extended byorg.jboss.mq.SpyMessage
      extended byorg.jboss.mq.SpyTextMessage
All Implemented Interfaces:
Cloneable, Comparable, Externalizable, javax.jms.Message, Serializable, javax.jms.TextMessage

public class SpyTextMessage
extends SpyMessage
implements Cloneable, javax.jms.TextMessage, Externalizable

This class implements javax.jms.TextMessage

Version:
$Revision: 1.13 $
Author:
Norbert Lataille (Norbert.Lataille@m4x.org), Jason Dillon, Adrian Brock
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class org.jboss.mq.SpyMessage
SpyMessage.Header
 
Field Summary
 
Fields inherited from class org.jboss.mq.SpyMessage
ack, BOOLEAN, BYTE, BYTES_MESS, DOUBLE, ENCAP_MESS, FLOAT, header, INT, LONG, MAP_MESS, NULL, OBJECT, OBJECT_MESS, PROPERTY_REDELIVERY_COUNT, PROPERTY_REDELIVERY_DELAY, PROPERTY_REDELIVERY_LIMIT, PROPERTY_SCHEDULED_DELIVERY, session, SHORT, SPY_MESS, STREAM_MESS, STRING, TEXT_MESS
 
Fields inherited from interface javax.jms.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Constructor Summary
SpyTextMessage()
           
 
Method Summary
 void clearBody()
          Clear the message body
 String getText()
           
 SpyMessage myClone()
          Clone the message
 void readExternal(ObjectInput in)
           
 void setText(String string)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class org.jboss.mq.SpyMessage
acknowledge, clearProperties, compareTo, copyProps, createAcknowledgementRequest, doAcknowledge, doNegAcknowledge, getAcknowledgementRequest, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, isOutdated, propertyExists, readMessage, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setReadOnlyMode, setShortProperty, setStringProperty, writeMessage
 
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

SpyTextMessage

public SpyTextMessage()
Method Detail

setText

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

getText

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

clearBody

public void clearBody()
               throws javax.jms.JMSException
Description copied from class: SpyMessage
Clear the message body

Specified by:
clearBody in interface javax.jms.Message
Overrides:
clearBody in class SpyMessage
Throws:
javax.jms.JMSException - for any error

myClone

public SpyMessage myClone()
                   throws javax.jms.JMSException
Description copied from class: SpyMessage
Clone the message

Overrides:
myClone in class SpyMessage
Returns:
the cloned message
Throws:
javax.jms.JMSException - for any error

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Overrides:
readExternal in class SpyMessage
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Overrides:
writeExternal in class SpyMessage
Throws:
IOException

toString

public String toString()
Overrides:
toString in class SpyMessage


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.