Class AmqpJmsTextMessageFacade

    • Constructor Detail

      • AmqpJmsTextMessageFacade

        public AmqpJmsTextMessageFacade()
    • Method Detail

      • getJmsMsgType

        public byte getJmsMsgType()
        Overrides:
        getJmsMsgType in class AmqpJmsMessageFacade
        Returns:
        the appropriate byte value that indicates the type of message this is.
      • getText

        public java.lang.String getText()
                                 throws jakarta.jms.JMSException
        Description copied from interface: JmsTextMessageFacade
        Returns the String payload of the Message or null if none set.
        Specified by:
        getText in interface JmsTextMessageFacade
        Returns:
        the String value contained in the message.
        Throws:
        jakarta.jms.JMSException - if an error occurs while decoding text payload.
      • setText

        public void setText​(java.lang.String value)
        Description copied from interface: JmsTextMessageFacade
        Sets the new String payload of the wrapped message, or clears the old value if the given value is null.
        Specified by:
        setText in interface JmsTextMessageFacade
        Parameters:
        value - the new String payload, or null to clear the contents.
      • hasBody

        public boolean hasBody()
        Description copied from interface: JmsMessageFacade
        Returns true if the underlying message has a body, false if the body is empty.
        Specified by:
        hasBody in interface JmsMessageFacade
        Overrides:
        hasBody in class AmqpJmsMessageFacade
        Returns:
        true if the underlying message has a body, false if the body is empty.
      • initializeEmptyBody

        protected void initializeEmptyBody()
        Description copied from class: AmqpJmsMessageFacade
        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.
        Overrides:
        initializeEmptyBody in class AmqpJmsMessageFacade