Interface JmsTextMessageFacade

    • Method Detail

      • copy

        JmsTextMessageFacade copy()
                           throws javax.jms.JMSException
        Creates a copy of this JmsTextMessageFacade and its underlying provider message instance.
        Specified by:
        copy in interface JmsMessageFacade
        Returns:
        a new JmsTextMessageFacade that wraps a duplicate message.
        Throws:
        javax.jms.JMSException - if an error occurs while copying the message.
      • getText

        String getText()
                throws javax.jms.JMSException
        Returns the String payload of the Message or null if none set.
        Returns:
        the String value contained in the message.
        Throws:
        javax.jms.JMSException - if an error occurs while decoding text payload.
      • setText

        void setText​(String value)
        Sets the new String payload of the wrapped message, or clears the old value if the given value is null.
        Parameters:
        value - the new String payload, or null to clear the contents.