Class OfflineMessageHeader


  • public class OfflineMessageHeader
    extends java.lang.Object
    The OfflineMessageHeader holds header information of an offline message. The header information was retrieved using the OfflineMessageManager class.

    Each offline message is identified by the target user of the offline message and a unique stamp. Use OfflineMessageManager.getMessages(java.util.List) to retrieve the whole message.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getJid()
      Returns the full JID of the user that sent the message.
      java.lang.String getStamp()
      Returns the stamp that uniquely identifies the offline message.
      org.jxmpp.jid.Jid getUser()
      Returns the bare JID of the user that was offline when the message was sent.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getUser

        public org.jxmpp.jid.Jid getUser()
        Returns the bare JID of the user that was offline when the message was sent.
        Returns:
        the bare JID of the user that was offline when the message was sent.
      • getJid

        public java.lang.String getJid()
        Returns the full JID of the user that sent the message.
        Returns:
        the full JID of the user that sent the message.
      • getStamp

        public java.lang.String getStamp()
        Returns the stamp that uniquely identifies the offline message. This stamp will be used for getting the specific message or delete it. The stamp may be of the form UTC timestamps but it is not required to have that format.
        Returns:
        the stamp that uniquely identifies the offline message.