Package org.jivesoftware.smackx.offline
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 theOfflineMessageManager
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 Summary
Constructors Constructor Description OfflineMessageHeader(DiscoverItems.Item item)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getJid()
Returns the full JID of the user that sent the message.String
getStamp()
Returns the stamp that uniquely identifies the offline message.Jid
getUser()
Returns the bare JID of the user that was offline when the message was sent.
-
-
-
Constructor Detail
-
OfflineMessageHeader
public OfflineMessageHeader(DiscoverItems.Item item)
-
-
Method Detail
-
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.
-
-