org.jboss.jms.message
Class JBossTextMessage

java.lang.Object
  extended by org.jboss.messaging.core.impl.message.MessageSupport
      extended by org.jboss.jms.message.JBossMessage
          extended by org.jboss.jms.message.JBossTextMessage
All Implemented Interfaces:
java.io.Serializable, Message, Streamable

public class JBossTextMessage
extends JBossMessage

This class implements javax.jms.TextMessage ported from SpyTextMessage in JBossMQ.

Version:
$Revision: 3190 $ $Id: JBossTextMessage.java 3190 2007-10-15 13:03:24Z timfox $
Author:
Norbert Lataille (Norbert.Lataille@m4x.org), Jason Dillon, Adrian Brock, Tim Fox, Ovidiu Feodorov
See Also:
Serialized Form

Field Summary
static byte TYPE
           
 
Fields inherited from class org.jboss.jms.message.JBossMessage
connectionID, JBOSS_MESSAGING_ACTUAL_EXPIRY_TIME, JBOSS_MESSAGING_BRIDGE_MESSAGE_ID_LIST, JBOSS_MESSAGING_ORIG_DESTINATION, JBOSS_MESSAGING_ORIG_MESSAGE_ID, JMS_JBOSS_SCHEDULED_DELIVERY_PROP_NAME, jmsMessageID
 
Fields inherited from class org.jboss.messaging.core.impl.message.MessageSupport
expiration, headers, messageID, payload, payloadAsByteArray, priority, reliable, timestamp
 
Fields inherited from interface org.jboss.messaging.core.contract.Message
CLUSTER_SUCKED
 
Constructor Summary
JBossTextMessage()
          Only deserialization should use this constructor directory
JBossTextMessage(JBossTextMessage other)
          Make a shallow copy of another JBossTextMessage
JBossTextMessage(long messageID)
           
JBossTextMessage(long messageID, boolean reliable, long expiration, long timestamp, byte priority, java.util.Map coreHeaders, byte[] payloadAsByteArray)
           
JBossTextMessage(TextMessage foreign, long id)
          A copy constructor for non-JBoss Messaging JMS TextMessages.
 
Method Summary
 JBossMessage doCopy()
           
 java.lang.String getText()
           
 byte getType()
           
 void setText(java.lang.String string)
           
 
Methods inherited from class org.jboss.jms.message.JBossMessage
acknowledge, clearBody, clearProperties, copyPayload, createThinDelegate, doBeforeReceive, doBeforeSend, dump, getBooleanProperty, getByteProperty, getConnectionID, getDoubleProperty, getFloatProperty, getHeaders, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSProperties, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getScheduledDeliveryTime, getShortProperty, getStringProperty, isCorrelationIDBytes, isReference, propertyExists, read, setBooleanProperty, setByteProperty, setConnectionID, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setMessageId, setObjectProperty, setShortProperty, setStringProperty, toString, write
 
Methods inherited from class org.jboss.messaging.core.impl.message.MessageSupport
containsHeader, createReference, equals, getExpiration, getHeader, getMessageID, getPayload, getPayloadAsByteArray, getPriority, getTimestamp, hashCode, isExpired, isPersisted, isReliable, putHeader, removeHeader, setExpiration, setPayload, setPersisted, setPriority
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final byte TYPE
See Also:
Constant Field Values
Constructor Detail

JBossTextMessage

public JBossTextMessage()
Only deserialization should use this constructor directory


JBossTextMessage

public JBossTextMessage(long messageID)

JBossTextMessage

public JBossTextMessage(long messageID,
                        boolean reliable,
                        long expiration,
                        long timestamp,
                        byte priority,
                        java.util.Map coreHeaders,
                        byte[] payloadAsByteArray)

JBossTextMessage

public JBossTextMessage(JBossTextMessage other)
Make a shallow copy of another JBossTextMessage

Parameters:
other -

JBossTextMessage

public JBossTextMessage(TextMessage foreign,
                        long id)
                 throws JMSException
A copy constructor for non-JBoss Messaging JMS TextMessages.

Throws:
JMSException
Method Detail

getType

public byte getType()
Specified by:
getType in interface Message
Overrides:
getType in class JBossMessage
Returns:
the type of the message

setText

public void setText(java.lang.String string)
             throws JMSException
Throws:
JMSException

getText

public java.lang.String getText()
                         throws JMSException
Throws:
JMSException

doCopy

public JBossMessage doCopy()
Overrides:
doCopy in class JBossMessage


Copyright © 2006 JBoss Inc. All Rights Reserved.