Package com.swiftmq.jms
Class TextMessageImpl
- java.lang.Object
-
- com.swiftmq.jms.MessageImpl
-
- com.swiftmq.jms.TextMessageImpl
-
- All Implemented Interfaces:
jakarta.jms.Message,jakarta.jms.TextMessage,java.io.Serializable
public class TextMessageImpl extends MessageImpl implements jakarta.jms.TextMessage
Implementation of a TextMessage.- Author:
- IIT GmbH, Bremen/Germany, Copyright (c) 2000-2002, All Rights Reserved
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.swiftmq.jms.MessageImpl
DEFAULT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY, PROP_CLIENT_ID, PROP_DELIVERY_COUNT, PROP_DOUBT_DUPLICATE, PROP_UNROUTABLE_REASON, PROP_USER_ID
-
-
Constructor Summary
Constructors Constructor Description TextMessageImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearBody()Clear out the message body.java.lang.StringgetText()Get the string containing this message's data.protected intgetType()protected voidreadBody(java.io.DataInput in)voidsetReadOnly(boolean b)voidsetText(java.lang.String s)Set the string containing this message's data.java.lang.StringtoString()protected voidunfoldBody()protected voidwriteBody(java.io.DataOutput out)-
Methods inherited from class com.swiftmq.jms.MessageImpl
acknowledge, clearProperties, clearSwiftMQAllProps, clearSwiftMQProps, createInstance, getBody, getBooleanProperty, getByteProperty, getDestQueue, getDestRouter, getDoubleProperty, getDuplicateId, getField, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDeliveryTime, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getMessageIndex, getMessageLength, getObjectProperty, getPersistentKey, getPropertyNames, getShortProperty, getSourceRouter, getStreamPKey, getStringProperty, isBodyAssignableTo, isCancelled, propertyExists, readContent, readContent, removeProperty, reset, setBooleanProperty, setByteProperty, setDestQueue, setDestRouter, setDoubleProperty, setDuplicateId, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDeliveryTime, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setMessageConsumerImpl, setMessageIndex, setObjectProperty, setPersistentKey, setSessionImpl, setShortProperty, setSourceRouter, setStreamPKey, setStringProperty, setUseThreadContextCL, unfoldBuffers, writeContent, writeContent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface jakarta.jms.Message
acknowledge, clearProperties, getBody, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDeliveryTime, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getObjectProperty, getPropertyNames, getShortProperty, getStringProperty, isBodyAssignableTo, propertyExists, setBooleanProperty, setByteProperty, setDoubleProperty, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDeliveryTime, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setLongProperty, setObjectProperty, setShortProperty, setStringProperty
-
-
-
-
Method Detail
-
getType
protected int getType()
- Overrides:
getTypein classMessageImpl
-
unfoldBody
protected void unfoldBody()
- Overrides:
unfoldBodyin classMessageImpl
-
writeBody
protected void writeBody(java.io.DataOutput out) throws java.io.IOException- Overrides:
writeBodyin classMessageImpl- Throws:
java.io.IOException
-
readBody
protected void readBody(java.io.DataInput in) throws java.io.IOException- Overrides:
readBodyin classMessageImpl- Throws:
java.io.IOException
-
getText
public java.lang.String getText() throws jakarta.jms.JMSExceptionGet the string containing this message's data. The default value is null.- Specified by:
getTextin interfacejakarta.jms.TextMessage- Returns:
- the String containing the message's data
- Throws:
jakarta.jms.JMSException- if JMS fails to get text due to some internal JMS error.
-
setText
public void setText(java.lang.String s) throws jakarta.jms.JMSExceptionSet the string containing this message's data.- Specified by:
setTextin interfacejakarta.jms.TextMessage- Parameters:
s- the String containing the message's data- Throws:
jakarta.jms.JMSException- if JMS fails to set text due to some internal JMS error.jakarta.jms.MessageNotWriteableException- if message in read-only mode.
-
setReadOnly
public void setReadOnly(boolean b)
- Overrides:
setReadOnlyin classMessageImpl
-
clearBody
public void clearBody() throws jakarta.jms.JMSExceptionClear out the message body. All other parts of the message are left untouched.- Specified by:
clearBodyin interfacejakarta.jms.Message- Overrides:
clearBodyin classMessageImpl- Throws:
jakarta.jms.JMSException- if JMS fails to due to some internal JMS error.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classMessageImpl
-
-