Class ActiveMQRAMapMessage

  • All Implemented Interfaces:
    javax.jms.MapMessage, javax.jms.Message

    public class ActiveMQRAMapMessage
    extends ActiveMQRAMessage
    implements javax.jms.MapMessage
    A wrapper for a message
    • Constructor Detail

      • ActiveMQRAMapMessage

        public ActiveMQRAMapMessage​(javax.jms.MapMessage message,
                                    ActiveMQRASession session)
        Create a new wrapper
        Parameters:
        message - the message
        session - the session
    • Method Detail

      • getBoolean

        public boolean getBoolean​(String name)
                           throws javax.jms.JMSException
        Get
        Specified by:
        getBoolean in interface javax.jms.MapMessage
        Parameters:
        name - The name
        Returns:
        The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • getByte

        public byte getByte​(String name)
                     throws javax.jms.JMSException
        Get
        Specified by:
        getByte in interface javax.jms.MapMessage
        Parameters:
        name - The name
        Returns:
        The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • getBytes

        public byte[] getBytes​(String name)
                        throws javax.jms.JMSException
        Get
        Specified by:
        getBytes in interface javax.jms.MapMessage
        Parameters:
        name - The name
        Returns:
        The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • getChar

        public char getChar​(String name)
                     throws javax.jms.JMSException
        Get
        Specified by:
        getChar in interface javax.jms.MapMessage
        Parameters:
        name - The name
        Returns:
        The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • getDouble

        public double getDouble​(String name)
                         throws javax.jms.JMSException
        Get
        Specified by:
        getDouble in interface javax.jms.MapMessage
        Parameters:
        name - The name
        Returns:
        The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • getFloat

        public float getFloat​(String name)
                       throws javax.jms.JMSException
        Get
        Specified by:
        getFloat in interface javax.jms.MapMessage
        Parameters:
        name - The name
        Returns:
        The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • getInt

        public int getInt​(String name)
                   throws javax.jms.JMSException
        Get
        Specified by:
        getInt in interface javax.jms.MapMessage
        Parameters:
        name - The name
        Returns:
        The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • getLong

        public long getLong​(String name)
                     throws javax.jms.JMSException
        Get
        Specified by:
        getLong in interface javax.jms.MapMessage
        Parameters:
        name - The name
        Returns:
        The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • getMapNames

        public Enumeration getMapNames()
                                throws javax.jms.JMSException
        Get the map names
        Specified by:
        getMapNames in interface javax.jms.MapMessage
        Returns:
        The values
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • getObject

        public Object getObject​(String name)
                         throws javax.jms.JMSException
        Get
        Specified by:
        getObject in interface javax.jms.MapMessage
        Parameters:
        name - The name
        Returns:
        The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • getShort

        public short getShort​(String name)
                       throws javax.jms.JMSException
        Get
        Specified by:
        getShort in interface javax.jms.MapMessage
        Parameters:
        name - The name
        Returns:
        The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • getString

        public String getString​(String name)
                         throws javax.jms.JMSException
        Get
        Specified by:
        getString in interface javax.jms.MapMessage
        Parameters:
        name - The name
        Returns:
        The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • itemExists

        public boolean itemExists​(String name)
                           throws javax.jms.JMSException
        Does the item exist
        Specified by:
        itemExists in interface javax.jms.MapMessage
        Parameters:
        name - The name
        Returns:
        True / false
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • setBoolean

        public void setBoolean​(String name,
                               boolean value)
                        throws javax.jms.JMSException
        Set
        Specified by:
        setBoolean in interface javax.jms.MapMessage
        Parameters:
        name - The name
        value - The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • setByte

        public void setByte​(String name,
                            byte value)
                     throws javax.jms.JMSException
        Set
        Specified by:
        setByte in interface javax.jms.MapMessage
        Parameters:
        name - The name
        value - The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • setBytes

        public void setBytes​(String name,
                             byte[] value,
                             int offset,
                             int length)
                      throws javax.jms.JMSException
        Set
        Specified by:
        setBytes in interface javax.jms.MapMessage
        Parameters:
        name - The name
        value - The value
        offset - The offset
        length - The length
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • setBytes

        public void setBytes​(String name,
                             byte[] value)
                      throws javax.jms.JMSException
        Set
        Specified by:
        setBytes in interface javax.jms.MapMessage
        Parameters:
        name - The name
        value - The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • setChar

        public void setChar​(String name,
                            char value)
                     throws javax.jms.JMSException
        Set
        Specified by:
        setChar in interface javax.jms.MapMessage
        Parameters:
        name - The name
        value - The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • setDouble

        public void setDouble​(String name,
                              double value)
                       throws javax.jms.JMSException
        Set
        Specified by:
        setDouble in interface javax.jms.MapMessage
        Parameters:
        name - The name
        value - The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • setFloat

        public void setFloat​(String name,
                             float value)
                      throws javax.jms.JMSException
        Set
        Specified by:
        setFloat in interface javax.jms.MapMessage
        Parameters:
        name - The name
        value - The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • setInt

        public void setInt​(String name,
                           int value)
                    throws javax.jms.JMSException
        Set
        Specified by:
        setInt in interface javax.jms.MapMessage
        Parameters:
        name - The name
        value - The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • setLong

        public void setLong​(String name,
                            long value)
                     throws javax.jms.JMSException
        Set
        Specified by:
        setLong in interface javax.jms.MapMessage
        Parameters:
        name - The name
        value - The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • setObject

        public void setObject​(String name,
                              Object value)
                       throws javax.jms.JMSException
        Set
        Specified by:
        setObject in interface javax.jms.MapMessage
        Parameters:
        name - The name
        value - The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • setShort

        public void setShort​(String name,
                             short value)
                      throws javax.jms.JMSException
        Set
        Specified by:
        setShort in interface javax.jms.MapMessage
        Parameters:
        name - The name
        value - The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs
      • setString

        public void setString​(String name,
                              String value)
                       throws javax.jms.JMSException
        Set
        Specified by:
        setString in interface javax.jms.MapMessage
        Parameters:
        name - The name
        value - The value
        Throws:
        javax.jms.JMSException - Thrown if an error occurs