public interface JmsTextMessageFacade extends JmsMessageFacade
Modifier and Type | Method and Description |
---|---|
JmsTextMessageFacade |
copy()
Creates a copy of this JmsTextMessageFacade and its underlying
provider message instance.
|
String |
getText()
Returns the String payload of the Message or null if none set.
|
void |
setText(String value)
Sets the new String payload of the wrapped message, or clears the old value
if the given value is null.
|
clearBody, clearProperties, getCorrelationId, getCorrelationIdBytes, getDeliveryCount, getDestination, getExpiration, getGroupId, getGroupSequence, getMessageId, getPriority, getProperty, getPropertyNames, getProviderMessageIdObject, getRedeliveryCount, getReplyTo, getTimestamp, getType, getUserId, getUserIdBytes, isPersistent, isRedelivered, onDispatch, onSend, propertyExists, setCorrelationId, setCorrelationIdBytes, setDeliveryCount, setDestination, setExpiration, setGroupId, setGroupSequence, setMessageId, setPersistent, setPriority, setProperty, setProviderMessageIdObject, setRedelivered, setRedeliveryCount, setReplyTo, setTimestamp, setType, setUserId, setUserIdBytes
JmsTextMessageFacade copy() throws javax.jms.JMSException
copy
in interface JmsMessageFacade
javax.jms.JMSException
- if an error occurs while copying the message.String getText() throws javax.jms.JMSException
javax.jms.JMSException
- if an error occurs while decoding text payload.void setText(String value)
value
- the new String payload, or null to clear the contents.Copyright © 2013–2016 The Apache Software Foundation. All rights reserved.