Smack

org.jivesoftware.smackx
Class OfflineMessageHeader

java.lang.Object
  extended by org.jivesoftware.smackx.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.

Author:
Gaston Dombiak

Constructor Summary
OfflineMessageHeader(DiscoverItems.Item item)
           
 
Method Summary
 String getJid()
          Returns the full JID of the user that sent the message.
 String getStamp()
          Returns the stamp that uniquely identifies the offline message.
 String 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
 

Constructor Detail

OfflineMessageHeader

public OfflineMessageHeader(DiscoverItems.Item item)
Method Detail

getUser

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

Smack

Copyright © 2003-2007 Jive Software.