BytesXMLMessage
is
deprecated.public interface TextXMLMessage extends XMLMessage
TextXMLMessage
is used to send a message specified by a
String
.
If charset for encoding is not specified, the platform default charset is used.
TextXMLMessage
is used for sending short messages. For large
messages, BytesXMLMessage
or StreamXMLMessage
should be
used for increased performance.
XMLMessage.MessageUserPropertyConstants, XMLMessage.Outcome
MSGDUMP_BRIEF, MSGDUMP_FULL
Modifier and Type | Method and Description |
---|---|
String |
getText()
Deprecated.
Get the message content as text.
|
void |
setText(String text)
Deprecated.
Set the message content as text.
|
void |
setText(String text,
String charsetName)
Deprecated.
Set the message content as text.
|
ackMessage, clearAttachment, clearContent, dump, dump, getApplicationMessageId, getApplicationMessageType, getAppMessageID, getAppMessageType, getAttachmentByteBuffer, getAttachmentContentLength, getCacheRequestId, getConsumerIdList, getContentLength, getCorrelationId, getCorrelationKey, getCos, getDeliverToOne, getDeliveryCount, getDeliveryMode, getDestination, getDestinationTopicSuffix, getDiscardIndication, getExpiration, getHTTPContentEncoding, getHTTPContentType, getMessageId, getMessageIdLong, getMessageType, getPriority, getProperties, getReceiveTimestamp, getRedelivered, getReplicationGroupMessageId, getReplyTo, getReplyToSuffix, getSenderId, getSenderID, getSenderTimestamp, getSendTimestamp, getSequenceNumber, getTimeToLive, getTopicSequenceNumber, getUserData, hasAttachment, hasContent, hasUserData, isAckImmediately, isCacheMessage, isDMQEligible, isElidingEligible, isReadOnly, isReplyMessage, isSuspect, readAttachmentBytes, readAttachmentBytes, readAttachmentBytes, readContentBytes, readContentBytes, readContentBytes, rejectMessage, reset, rewindAttachment, setAckImmediately, setApplicationMessageId, setApplicationMessageType, setAppMessageID, setAppMessageType, setAsReplyMessage, setCorrelationId, setCorrelationKey, setCos, setDeliverToOne, setDeliveryMode, setDMQEligible, setElidingEligible, setExpiration, setHTTPContentEncoding, setHTTPContentType, setMessageType, setPriority, setProperties, setReadOnly, setReplyTo, setReplyToSuffix, setSenderId, setSenderID, setSenderTimestamp, setSendTimestamp, setSequenceNumber, setTimeToLive, settle, setUserData, writeAttachment, writeAttachment, writeAttachment, writeNewAttachment, writeNewAttachment, writeNewAttachment, writeNewAttachment
String getText()
void setText(String text)
text
- The message text.void setText(String text, String charsetName) throws UnsupportedEncodingException
text
- The message text.charsetName
- The name of a supported java.nio.charset.Charset
.UnsupportedEncodingException
- If the named charset is not supported.NullPointerException
- If text
is null.IllegalAccessError
- If the message is read-only.Copyright 2004-2024 Solace Corporation. All rights reserved.