public class AmqpJmsTextMessageFacade extends AmqpJmsMessageFacade implements JmsTextMessageFacade
connection| Constructor and Description |
|---|
AmqpJmsTextMessageFacade() |
| Modifier and Type | Method and Description |
|---|---|
JmsTextMessage |
asJmsMessage() |
void |
clearBody()
Clears the contents of this Message.
|
AmqpJmsTextMessageFacade |
copy()
Create a new instance and perform a deep copy of this object's
contents.
|
byte |
getJmsMsgType() |
String |
getText()
Returns the String payload of the Message or null if none set.
|
boolean |
hasBody()
Returns true if the underlying message has a body, false if the body is empty.
|
protected void |
initializeEmptyBody()
Used to indicate that a Message object should empty the body element and make
any other internal updates to reflect the message now has no body value.
|
void |
setText(String value)
Sets the new String payload of the wrapped message, or clears the old value
if the given value is null.
|
applicationPropertyExists, clearProperties, copyInto, encodeMessage, filterTracingAnnotations, getAmqpTimeToLiveOverride, getApplicationProperty, getApplicationPropertyNames, getContentType, getCorrelationId, getCorrelationIdBytes, getDeliveryCount, getDeliveryTime, getDestination, getExpiration, getGroupId, getGroupSequence, getMessageId, getPriority, getProperty, getPropertyNames, getProviderMessageIdObject, getRedeliveryCount, getReplyTo, getReplyToGroupId, getTimestamp, getTracingAnnotation, getTracingContext, getType, getUserId, getUserIdBytes, hasAmqpTimeToLiveOverride, initialize, initialize, isDeliveryTimeTransmitted, isPersistent, isRedelivered, onDispatch, onSend, propertyExists, removeTracingAnnotation, removeTracingContext, setAmqpTimeToLiveOverride, setApplicationProperty, setContentType, setCorrelationId, setCorrelationIdBytes, setDeliveryCount, setDeliveryTime, setDestination, setExpiration, setGroupId, setGroupSequence, setMessageId, setPersistent, setPriority, setProperty, setProviderMessageIdObject, setRedelivered, setRedeliveryCount, setReplyTo, setReplyToGroupId, setTimestamp, setTracingAnnotation, setTracingContext, setType, setUserId, setUserIdBytesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearProperties, encodeMessage, getCorrelationId, getCorrelationIdBytes, getDeliveryCount, getDeliveryTime, getDestination, getExpiration, getGroupId, getGroupSequence, getMessageId, getPriority, getProperty, getPropertyNames, getProviderMessageIdObject, getRedeliveryCount, getReplyTo, getTimestamp, getType, getUserId, getUserIdBytes, isDeliveryTimeTransmitted, isPersistent, isRedelivered, onDispatch, onSend, propertyExists, setCorrelationId, setCorrelationIdBytes, setDeliveryCount, setDeliveryTime, setDestination, setExpiration, setGroupId, setGroupSequence, setMessageId, setPersistent, setPriority, setProperty, setProviderMessageIdObject, setRedelivered, setRedeliveryCount, setReplyTo, setTimestamp, setType, setUserId, setUserIdBytesfilterTracingAnnotations, getTracingAnnotation, getTracingContext, removeTracingAnnotation, removeTracingContext, setTracingAnnotation, setTracingContextpublic byte getJmsMsgType()
getJmsMsgType in class AmqpJmsMessageFacadepublic AmqpJmsTextMessageFacade copy() throws javax.jms.JMSException
JmsMessageFacadecopy in interface JmsMessageFacadecopy in interface JmsTextMessageFacadecopy in class AmqpJmsMessageFacadejavax.jms.JMSException - if an error occurs while copying the message.public String getText() throws javax.jms.JMSException
JmsTextMessageFacadegetText in interface JmsTextMessageFacadejavax.jms.JMSException - if an error occurs while decoding text payload.public void setText(String value)
JmsTextMessageFacadesetText in interface JmsTextMessageFacadevalue - the new String payload, or null to clear the contents.public void clearBody()
JmsMessageFacadeclearBody in interface JmsMessageFacadeclearBody in class AmqpJmsMessageFacadepublic boolean hasBody()
JmsMessageFacadehasBody in interface JmsMessageFacadehasBody in class AmqpJmsMessageFacadepublic JmsTextMessage asJmsMessage()
asJmsMessage in class AmqpJmsMessageFacadeprotected void initializeEmptyBody()
AmqpJmsMessageFacadeinitializeEmptyBody in class AmqpJmsMessageFacadeCopyright © 2013–2019 The Apache Software Foundation. All rights reserved.