org.apache.qpid.client.message
Class JMSTextMessage

java.lang.Object
  extended by org.apache.qpid.client.message.AbstractJMSMessage
      extended by org.apache.qpid.client.message.JMSTextMessage
All Implemented Interfaces:
Message, TextMessage

public class JMSTextMessage
extends AbstractJMSMessage
implements TextMessage


Field Summary
 
Fields inherited from class org.apache.qpid.client.message.AbstractJMSMessage
_changedData, _data, _delegate, _readableMessage
 
Fields inherited from interface javax.jms.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
 
Fields inherited from interface org.apache.qpid.jms.Message
JMS_TYPE
 
Constructor Summary
JMSTextMessage(AMQMessageDelegate delegate, org.apache.mina.common.ByteBuffer data)
           
JMSTextMessage(AMQMessageDelegateFactory delegateFactory)
           
JMSTextMessage(AMQMessageDelegateFactory delegateFactory, org.apache.mina.common.ByteBuffer data, String encoding)
           
 
Method Summary
 void clearBodyImpl()
          This forces concrete classes to implement clearBody()
protected  String getMimeType()
           
 String getText()
           
 void prepareForSending()
          Invoked prior to sending the message.
 void setText(String text)
           
 String toBodyString()
          Get a String representation of the body of the message.
 
Methods inherited from class org.apache.qpid.client.message.AbstractJMSMessage
acknowledge, acknowledgeThis, checkReadable, checkWritable, clearBody, clearProperties, getAMQSession, getBooleanProperty, getByteProperty, getContentLength, getContentType, getData, getDelegate, getDeliveryTag, getDoubleProperty, getEncoding, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getReplyToString, getShortProperty, getStringProperty, propertyExists, receivedFromServer, removeProperty, reset, setAMQSession, setBooleanProperty, setByteProperty, setContentType, setDoubleProperty, setEncoding, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, 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, clearBody, 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

JMSTextMessage

public JMSTextMessage(AMQMessageDelegateFactory delegateFactory)
               throws JMSException
Throws:
JMSException

JMSTextMessage

JMSTextMessage(AMQMessageDelegateFactory delegateFactory,
               org.apache.mina.common.ByteBuffer data,
               String encoding)
         throws JMSException
Throws:
JMSException

JMSTextMessage

JMSTextMessage(AMQMessageDelegate delegate,
               org.apache.mina.common.ByteBuffer data)
         throws org.apache.qpid.AMQException
Throws:
org.apache.qpid.AMQException
Method Detail

clearBodyImpl

public void clearBodyImpl()
                   throws JMSException
Description copied from class: AbstractJMSMessage
This forces concrete classes to implement clearBody()

Specified by:
clearBodyImpl in class AbstractJMSMessage
Throws:
JMSException

toBodyString

public String toBodyString()
                    throws JMSException
Description copied from class: AbstractJMSMessage
Get a String representation of the body of the message. Used in the toString() method which outputs this before message properties.

Specified by:
toBodyString in class AbstractJMSMessage
Throws:
JMSException

getMimeType

protected String getMimeType()
Specified by:
getMimeType in class AbstractJMSMessage

setText

public void setText(String text)
             throws JMSException
Specified by:
setText in interface TextMessage
Throws:
JMSException

getText

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

prepareForSending

public void prepareForSending()
                       throws JMSException
Description copied from class: AbstractJMSMessage
Invoked prior to sending the message. Allows the message to be modified if necessary before sending.

Overrides:
prepareForSending in class AbstractJMSMessage
Throws:
JMSException


Licensed to the Apache Software Foundation