Class JmsMapMessage

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

    public class JmsMapMessage
    extends JmsMessage
    implements javax.jms.MapMessage
    Implementation of the JMS MapMessage.
    • Method Detail

      • copy

        public JmsMapMessage copy()
                           throws javax.jms.JMSException
        Overrides:
        copy in class JmsMessage
        Throws:
        javax.jms.JMSException
      • clearBody

        public void clearBody()
                       throws javax.jms.JMSException
        Specified by:
        clearBody in interface javax.jms.Message
        Overrides:
        clearBody in class JmsMessage
        Throws:
        javax.jms.JMSException
      • getBoolean

        public boolean getBoolean​(String name)
                           throws javax.jms.JMSException
        Specified by:
        getBoolean in interface javax.jms.MapMessage
        Throws:
        javax.jms.JMSException
      • getByte

        public byte getByte​(String name)
                     throws javax.jms.JMSException
        Specified by:
        getByte in interface javax.jms.MapMessage
        Throws:
        javax.jms.JMSException
      • getShort

        public short getShort​(String name)
                       throws javax.jms.JMSException
        Specified by:
        getShort in interface javax.jms.MapMessage
        Throws:
        javax.jms.JMSException
      • getChar

        public char getChar​(String name)
                     throws javax.jms.JMSException
        Specified by:
        getChar in interface javax.jms.MapMessage
        Throws:
        javax.jms.JMSException
      • getInt

        public int getInt​(String name)
                   throws javax.jms.JMSException
        Specified by:
        getInt in interface javax.jms.MapMessage
        Throws:
        javax.jms.JMSException
      • getLong

        public long getLong​(String name)
                     throws javax.jms.JMSException
        Specified by:
        getLong in interface javax.jms.MapMessage
        Throws:
        javax.jms.JMSException
      • getFloat

        public float getFloat​(String name)
                       throws javax.jms.JMSException
        Specified by:
        getFloat in interface javax.jms.MapMessage
        Throws:
        javax.jms.JMSException
      • getDouble

        public double getDouble​(String name)
                         throws javax.jms.JMSException
        Specified by:
        getDouble in interface javax.jms.MapMessage
        Throws:
        javax.jms.JMSException
      • getString

        public String getString​(String name)
                         throws javax.jms.JMSException
        Specified by:
        getString in interface javax.jms.MapMessage
        Throws:
        javax.jms.JMSException
      • getBytes

        public byte[] getBytes​(String name)
                        throws javax.jms.JMSException
        Specified by:
        getBytes in interface javax.jms.MapMessage
        Throws:
        javax.jms.JMSException
      • getObject

        public Object getObject​(String name)
                         throws javax.jms.JMSException
        Specified by:
        getObject in interface javax.jms.MapMessage
        Throws:
        javax.jms.JMSException
      • getMapNames

        public Enumeration<String> getMapNames()
                                        throws javax.jms.JMSException
        Specified by:
        getMapNames in interface javax.jms.MapMessage
        Throws:
        javax.jms.JMSException
      • setBoolean

        public void setBoolean​(String name,
                               boolean value)
                        throws javax.jms.JMSException
        Specified by:
        setBoolean in interface javax.jms.MapMessage
        Throws:
        javax.jms.JMSException
      • setByte

        public void setByte​(String name,
                            byte value)
                     throws javax.jms.JMSException
        Specified by:
        setByte in interface javax.jms.MapMessage
        Throws:
        javax.jms.JMSException
      • setShort

        public void setShort​(String name,
                             short value)
                      throws javax.jms.JMSException
        Specified by:
        setShort in interface javax.jms.MapMessage
        Throws:
        javax.jms.JMSException
      • setChar

        public void setChar​(String name,
                            char value)
                     throws javax.jms.JMSException
        Specified by:
        setChar in interface javax.jms.MapMessage
        Throws:
        javax.jms.JMSException
      • setInt

        public void setInt​(String name,
                           int value)
                    throws javax.jms.JMSException
        Specified by:
        setInt in interface javax.jms.MapMessage
        Throws:
        javax.jms.JMSException
      • setLong

        public void setLong​(String name,
                            long value)
                     throws javax.jms.JMSException
        Specified by:
        setLong in interface javax.jms.MapMessage
        Throws:
        javax.jms.JMSException
      • setFloat

        public void setFloat​(String name,
                             float value)
                      throws javax.jms.JMSException
        Specified by:
        setFloat in interface javax.jms.MapMessage
        Throws:
        javax.jms.JMSException
      • setDouble

        public void setDouble​(String name,
                              double value)
                       throws javax.jms.JMSException
        Specified by:
        setDouble in interface javax.jms.MapMessage
        Throws:
        javax.jms.JMSException
      • setString

        public void setString​(String name,
                              String value)
                       throws javax.jms.JMSException
        Specified by:
        setString in interface javax.jms.MapMessage
        Throws:
        javax.jms.JMSException
      • setBytes

        public void setBytes​(String name,
                             byte[] value)
                      throws javax.jms.JMSException
        Specified by:
        setBytes in interface javax.jms.MapMessage
        Throws:
        javax.jms.JMSException
      • setBytes

        public void setBytes​(String name,
                             byte[] value,
                             int offset,
                             int length)
                      throws javax.jms.JMSException
        Specified by:
        setBytes in interface javax.jms.MapMessage
        Throws:
        javax.jms.JMSException
      • setObject

        public void setObject​(String name,
                              Object value)
                       throws javax.jms.JMSException
        Specified by:
        setObject in interface javax.jms.MapMessage
        Throws:
        javax.jms.JMSException
      • itemExists

        public boolean itemExists​(String name)
                           throws javax.jms.JMSException
        Indicates whether an item exists in this MapMessage object.
        Specified by:
        itemExists in interface javax.jms.MapMessage
        Parameters:
        name - the name of the item to test
        Returns:
        true if the item exists
        Throws:
        javax.jms.JMSException - if the JMS provider fails to determine if the item exists due to some internal error.
      • isBodyAssignableTo

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

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