Interface JmsMapMessageFacade

    • Method Detail

      • copy

        JmsMapMessageFacade copy()
                          throws jakarta.jms.JMSException
        Description copied from interface: JmsMessageFacade
        Create a new instance and perform a deep copy of this object's contents.
        Specified by:
        copy in interface JmsMessageFacade
        Returns:
        a deep copy of this Message Facade including a complete copy of the byte contents of the wrapped message.
        Throws:
        jakarta.jms.JMSException - if an error occurs while copying this message.
      • getMapNames

        java.util.Enumeration<java.lang.String> getMapNames()
        Returns an Enumeration of all the names in the MapMessage object.
        Returns:
        an enumeration of all the names in this MapMessage
      • itemExists

        boolean itemExists​(java.lang.String key)
        Determines whether an item exists in this Map based message.
        Parameters:
        key - The entry key that is being searched for.
        Returns:
        true if the item exists in the Map, false otherwise.
      • get

        java.lang.Object get​(java.lang.String key)
        Gets the value stored in the Map at the specified key.
        Parameters:
        key - the key to use to access a value in the Map.
        Returns:
        the item associated with the given key, or null if not present.
      • put

        void put​(java.lang.String key,
                 java.lang.Object value)
        Sets an object value with the specified name into the Map. If a previous mapping for the key exists, the old value is replaced by the specified value. If the value provided is a byte[] its entry then it is assumed that it was copied by the caller and its value will not be altered by the provider.
        Parameters:
        key - the key to use to store the value into the Map.
        value - the new value to store in the element defined by the key.
      • remove

        java.lang.Object remove​(java.lang.String key)
        Remove the mapping for this key from the map if present. If the value is not present in the map then this method should return without error or modification to the underlying map.
        Parameters:
        key - the key to be removed from the map if present.
        Returns:
        the object previously stored in the Map or null if none present.