Class JivePropertiesExtension

    • Method Detail

      • getProperty

        public Object getProperty​(String name)
        Returns the stanza property with the specified name or null if the property doesn't exist. Property values that were originally primitives will be returned as their object equivalent. For example, an int property will be returned as an Integer, a double as a Double, etc.
        Parameters:
        name - the name of the property.
        Returns:
        the property, or null if the property doesn't exist.
      • setProperty

        public void setProperty​(String name,
                                Object value)
        Sets a property with an Object as the value. The value must be Serializable or an IllegalArgumentException will be thrown.
        Parameters:
        name - the name of the property.
        value - the value of the property.
      • deleteProperty

        public void deleteProperty​(String name)
        Deletes a property.
        Parameters:
        name - the name of the property to delete.
      • getPropertyNames

        public Collection<StringgetPropertyNames()
        Returns an unmodifiable collection of all the property names that are set.
        Returns:
        all property names.
      • from

        public static JivePropertiesExtension from​(Message message)
        Return a Jive properties extensions of the given message.
        Parameters:
        message - the message to return the extension from.
        Returns:
        a Jive properties extension or null.
        Since:
        4.2