Class OfflineMessageHeader

java.lang.Object
org.jivesoftware.smackx.offline.OfflineMessageHeader

public class OfflineMessageHeader extends 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.

  • Constructor Details

  • Method Details

    • getUser

      public 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 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 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.