Package com.swiftmq.jms
Class TextMessageImpl
java.lang.Object
com.swiftmq.jms.MessageImpl
com.swiftmq.jms.TextMessageImpl
- All Implemented Interfaces:
Serializable
,javax.jms.Message
,javax.jms.TextMessage
Implementation of a TextMessage.
- Author:
- IIT GmbH, Bremen/Germany, Copyright (c) 2000-2002, All Rights Reserved
- See Also:
-
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
Fields inherited from interface javax.jms.Message
DEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Clear out the message body.getText()
Get the string containing this message's data.protected int
getType()
protected void
void
setReadOnly
(boolean b) void
Set the string containing this message's data.toString()
protected void
protected void
writeBody
(DataOutput out) Methods inherited from class com.swiftmq.jms.MessageImpl
acknowledge, clearProperties, clearSwiftMQAllProps, clearSwiftMQProps, createInstance, getBooleanProperty, getByteProperty, getDestQueue, getDestRouter, getDoubleProperty, getDuplicateId, getField, getFloatProperty, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getLongProperty, getMessageIndex, getMessageLength, getObjectProperty, getPersistentKey, getPropertyNames, getShortProperty, getSourceRouter, getStreamPKey, getStringProperty, isCancelled, propertyExists, readContent, readContent, removeProperty, reset, setBooleanProperty, setByteProperty, setDestQueue, setDestRouter, setDoubleProperty, setDuplicateId, setFloatProperty, setIntProperty, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, 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 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 Details
-
TextMessageImpl
public TextMessageImpl()
-
-
Method Details
-
getType
protected int getType()- Overrides:
getType
in classMessageImpl
-
unfoldBody
protected void unfoldBody()- Overrides:
unfoldBody
in classMessageImpl
-
writeBody
- Overrides:
writeBody
in classMessageImpl
- Throws:
IOException
-
readBody
- Overrides:
readBody
in classMessageImpl
- Throws:
IOException
-
getText
Get the string containing this message's data. The default value is null.- Specified by:
getText
in interfacejavax.jms.TextMessage
- Returns:
- the String containing the message's data
- Throws:
javax.jms.JMSException
- if JMS fails to get text due to some internal JMS error.
-
setText
Set the string containing this message's data.- Specified by:
setText
in interfacejavax.jms.TextMessage
- Parameters:
s
- the String containing the message's data- Throws:
javax.jms.JMSException
- if JMS fails to set text due to some internal JMS error.javax.jms.MessageNotWriteableException
- if message in read-only mode.
-
setReadOnly
public void setReadOnly(boolean b) - Overrides:
setReadOnly
in classMessageImpl
-
clearBody
public void clearBody() throws javax.jms.JMSExceptionClear out the message body. All other parts of the message are left untouched.- Specified by:
clearBody
in interfacejavax.jms.Message
- Overrides:
clearBody
in classMessageImpl
- Throws:
javax.jms.JMSException
- if JMS fails to due to some internal JMS error.
-
toString
- Overrides:
toString
in classMessageImpl
-