public class SolTextMessage extends SolMessage implements TextMessageIF
JMSMessageIDPrefix, PRORITY_MAX, PRORITY_UNDEFINEDSOLACE_JMS_PROP_ISXMLDEFAULT_DELIVERY_MODE, DEFAULT_PRIORITY, DEFAULT_TIME_TO_LIVE| Constructor and Description |
|---|
SolTextMessage() |
SolTextMessage(BytesXMLMessage message) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearBody()
Clears out the message body.
|
String |
getText()
Gets the string containing this message's data.
|
void |
setText(String string)
Sets the string containing this message's data.
|
acknowledge, clearProperties, dump, getBooleanProperty, getByteProperty, getDoubleProperty, getFloatProperty, getHTTPContentEncoding, getHTTPContentType, getIntProperty, getJMSCorrelationID, getJMSCorrelationIDAsBytes, getJMSDeliveryMode, getJMSDestination, getJMSExpiration, getJMSMessageID, getJMSPriority, getJMSRedelivered, getJMSReplyTo, getJMSTimestamp, getJMSType, getJMSXDeliveryCount, getLongProperty, getMessage, getMessageSize, getObjectProperty, getProperties, getPropertyNames, getSenderID, getShortProperty, getStringProperty, isDMQEligible, isDTO, isElidingEligible, isReplyMsg, isXML, propertyExists, removeProperty, setAckHandler, setBooleanProperty, setByteProperty, setDiscardIndication, setDoubleProperty, setFloatProperty, setHTTPContentEncoding, setHTTPContentType, setIntProperty, setIsDMQEligible, setIsDTO, setIsElidingEligible, setIsReplyMsg, setIsXML, setJMSCorrelationID, setJMSCorrelationIDAsBytes, setJMSDeliveryMode, setJMSDestination, setJMSExpiration, setJMSMessageID, setJMSPriority, setJMSRedelivered, setJMSReplyTo, setJMSTimestamp, setJMSType, setJMSXDeliveryCount, setLongProperty, setObjectProperty, setObjectPropertyWithoutReadOnlyCheck, setSenderID, setShortProperty, setStringProperty, setTopicSequenceNumber, toStringequals, getClass, hashCode, notify, notifyAll, wait, wait, waitacknowledge, 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, setStringPropertypublic SolTextMessage()
public SolTextMessage(BytesXMLMessage message)
public void clearBody()
throws JMSException
If this message body was read-only, calling this method leaves the message body in the same state as an empty body in a newly created message.
clearBody in interface MessageclearBody in class SolMessageJMSException - if the JMS provider fails to clear the message
body due to some internal error.public void setText(String string) throws JMSException
setText in interface TextMessagestring - the String containing the message's dataJMSException - if the JMS provider fails to set the text due to
some internal error.MessageNotWriteableException - if the message is in read-only
mode.public String getText() throws JMSException
getText in interface TextMessageString containing the message's dataJMSException - on errorCopyright 2004-2020 Solace Corporation. All rights reserved.