Class OfflineMessage


  • public class OfflineMessage
    extends org.xmpp.packet.Message
    Subclass of Message that keeps the date when the offline message was stored in the database. The creation date and the user may be used as a unique identifier of the offline message.
    Author:
    Gaston Dombiak
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.xmpp.packet.Message

        org.xmpp.packet.Message.Type
    • Field Summary

      • Fields inherited from class org.xmpp.packet.Packet

        docFactory, element, fromJID, toJID
    • Constructor Summary

      Constructors 
      Constructor Description
      OfflineMessage​(Date creationDate, org.dom4j.Element element)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Date getCreationDate()
      Returns the date when the offline message was stored in the database.
      • Methods inherited from class org.xmpp.packet.Message

        addChildElement, createCopy, getBody, getChildElement, getSubject, getThread, getType, setBody, setSubject, setThread, setType
      • Methods inherited from class org.xmpp.packet.Packet

        addExtension, deleteExtension, getElement, getError, getExtension, getFrom, getID, getTo, setError, setError, setFrom, setFrom, setID, setTo, setTo, toString, toXML
    • Constructor Detail

      • OfflineMessage

        public OfflineMessage​(Date creationDate,
                              org.dom4j.Element element)
    • Method Detail

      • getCreationDate

        public Date getCreationDate()
        Returns the date when the offline message was stored in the database.
        Returns:
        the date the offline message was stored.