org.jboss.messaging.jms.client
Class JBossTextMessage

java.lang.Object
  extended by org.jboss.messaging.jms.client.JBossMessage
      extended by org.jboss.messaging.jms.client.JBossTextMessage
All Implemented Interfaces:
javax.jms.Message, javax.jms.TextMessage

public class JBossTextMessage
extends JBossMessage
implements javax.jms.TextMessage

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

Version:
$Revision: 3412 $ $Id: JBossTextMessage.java 3412 2007-12-05 19:41:47Z timfox $
Author:
Norbert Lataille (Norbert.Lataille@m4x.org), Jason Dillon, Adrian Brock, Tim Fox, Ovidiu Feodorov

Field Summary
static Logger log
           
static byte TYPE
           
 
Fields inherited from class org.jboss.messaging.jms.client.JBossMessage
body, JBOSS_MESSAGING_BRIDGE_MESSAGE_ID_LIST, message, readOnly
 
Fields inherited from interface javax.jms.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Constructor Summary
JBossTextMessage()
           
JBossTextMessage(ClientMessage message, ClientSession session)
           
JBossTextMessage(javax.jms.TextMessage foreign)
          A copy constructor for non-JBoss Messaging JMS TextMessages.
 
Method Summary
 void clearBody()
           
 void doBeforeReceive()
           
 void doBeforeSend()
           
 java.lang.String getText()
           
 byte getType()
           
 void setText(java.lang.String text)
           
 
Methods inherited from class org.jboss.messaging.jms.client.JBossMessage
acknowledge, checkRead, checkWrite, clearProperties, createMessage, getBooleanProperty, getByteProperty, getCoreMessage, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getSession, getShortProperty, getStringProperty, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty, toString
 
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
 

Field Detail

TYPE

public static final byte TYPE
See Also:
Constant Field Values

log

public static final Logger log
Constructor Detail

JBossTextMessage

public JBossTextMessage()

JBossTextMessage

public JBossTextMessage(ClientMessage message,
                        ClientSession session)

JBossTextMessage

public JBossTextMessage(javax.jms.TextMessage foreign)
                 throws javax.jms.JMSException
A copy constructor for non-JBoss Messaging JMS TextMessages.

Throws:
javax.jms.JMSException
Method Detail

getType

public byte getType()
Overrides:
getType in class JBossMessage

setText

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

getText

public java.lang.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
Specified by:
clearBody in interface javax.jms.Message
Overrides:
clearBody in class JBossMessage
Throws:
javax.jms.JMSException

doBeforeSend

public void doBeforeSend()
                  throws java.lang.Exception
Overrides:
doBeforeSend in class JBossMessage
Throws:
java.lang.Exception

doBeforeReceive

public void doBeforeReceive()
                     throws java.lang.Exception
Overrides:
doBeforeReceive in class JBossMessage
Throws:
java.lang.Exception


Copyright © 2006 JBoss Inc. All Rights Reserved.