Class TextMessageImpl
- java.lang.Object
-
- net.timewalker.ffmq4.common.message.AbstractMessage
-
- net.timewalker.ffmq4.common.message.TextMessageImpl
-
- All Implemented Interfaces:
javax.jms.Message,javax.jms.TextMessage
public final class TextMessageImpl extends AbstractMessage implements javax.jms.TextMessage
Implementation of a
TextMessage
-
-
Field Summary
-
Fields inherited from class net.timewalker.ffmq4.common.message.AbstractMessage
bodyIsReadOnly
-
-
Constructor Summary
Constructors Constructor Description TextMessageImpl()ConstructorTextMessageImpl(String text)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearBody()AbstractMessagecopy()Create an independant copy of this messageStringgetText()protected bytegetType()Get the type value for this messageprotected voidserializeBodyTo(RawDataBuffer out)voidsetText(String body)StringtoString()protected voidunserializeBodyFrom(RawDataBuffer in)-
Methods inherited from class net.timewalker.ffmq4.common.message.AbstractMessage
acknowledge, assertDeserializationLevel, clearProperties, copyCommonFields, ensureDeserializationLevel, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getRawMessage, getSession, getShortProperty, getStringProperty, initializeFromRaw, isInternalCopy, markAsReadOnly, propertyExists, readMapFrom, serializeTo, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setInternalCopy, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setSession, setShortProperty, setStringProperty, writeMapTo
-
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()
Constructor
-
TextMessageImpl
public TextMessageImpl(String text) throws javax.jms.JMSException
Constructor- Throws:
javax.jms.JMSException
-
-
Method Detail
-
getType
protected byte getType()
Description copied from class:AbstractMessageGet the type value for this message- Specified by:
getTypein classAbstractMessage
-
unserializeBodyFrom
protected void unserializeBodyFrom(RawDataBuffer in)
- Specified by:
unserializeBodyFromin classAbstractMessage
-
serializeBodyTo
protected final void serializeBodyTo(RawDataBuffer out)
- Specified by:
serializeBodyToin classAbstractMessage
-
clearBody
public void clearBody()
- Specified by:
clearBodyin interfacejavax.jms.Message
-
getText
public String getText() throws javax.jms.JMSException
- Specified by:
getTextin interfacejavax.jms.TextMessage- Throws:
javax.jms.JMSException
-
setText
public void setText(String body) throws javax.jms.JMSException
- Specified by:
setTextin interfacejavax.jms.TextMessage- Throws:
javax.jms.JMSException
-
copy
public AbstractMessage copy()
Description copied from class:AbstractMessageCreate an independant copy of this message- Specified by:
copyin classAbstractMessage
-
toString
public String toString()
- Overrides:
toStringin classAbstractMessage
-
-