Class ActiveMQTextMessage

    • Constructor Detail

      • ActiveMQTextMessage

        public ActiveMQTextMessage()
    • Method Detail

      • getJMSXMimeType

        public String getJMSXMimeType()
        Description copied from interface: Message
        Returns the MIME type of this mesage. This can be used in selectors to filter on the MIME types of the different JMS messages, or in the case of BlobMessage it allows you to create a selector on the MIME type of the BLOB body
        Specified by:
        getJMSXMimeType in interface Message
        Overrides:
        getJMSXMimeType in class ActiveMQMessage
      • setText

        public void setText​(String text)
                     throws javax.jms.MessageNotWriteableException
        Specified by:
        setText in interface javax.jms.TextMessage
        Throws:
        javax.jms.MessageNotWriteableException
      • getText

        public String getText()
                       throws javax.jms.JMSException
        Specified by:
        getText in interface javax.jms.TextMessage
        Throws:
        javax.jms.JMSException
      • clearUnMarshalledState

        public void clearUnMarshalledState()
                                    throws javax.jms.JMSException
        Overrides:
        clearUnMarshalledState in class Message
        Throws:
        javax.jms.JMSException
      • clearBody

        public void clearBody()
                       throws javax.jms.JMSException
        Clears out the message body. Clearing a message's body does not clear its header values or property entries.

        If this message body was read-only, calling this method leaves the message body in the same state as an empty body in a newly created message.

        Specified by:
        clearBody in interface javax.jms.Message
        Overrides:
        clearBody in class ActiveMQMessage
        Throws:
        javax.jms.JMSException - if the JMS provider fails to clear the message body due to some internal error.
      • isBodyAssignableTo

        public boolean isBodyAssignableTo​(Class c)
                                   throws javax.jms.JMSException
        Specified by:
        isBodyAssignableTo in interface javax.jms.Message
        Overrides:
        isBodyAssignableTo in class ActiveMQMessage
        Throws:
        javax.jms.JMSException
      • doGetBody

        protected <T> T doGetBody​(Class<T> asType)
                           throws javax.jms.JMSException
        Overrides:
        doGetBody in class ActiveMQMessage
        Throws:
        javax.jms.JMSException