Smack

org.jivesoftware.smackx.packet
Class OfflineMessageInfo

java.lang.Object
  extended by org.jivesoftware.smackx.packet.OfflineMessageInfo
All Implemented Interfaces:
PacketExtension

public class OfflineMessageInfo
extends java.lang.Object
implements PacketExtension

OfflineMessageInfo is an extension included in the retrieved offline messages requested by the OfflineMessageManager. This extension includes a stamp that uniquely identifies the offline message. This stamp may be used for deleting the offline message. The stamp may be of the form UTC timestamps but it is not required to have that format.

Author:
Gaston Dombiak

Nested Class Summary
static class OfflineMessageInfo.Provider
           
 
Constructor Summary
OfflineMessageInfo()
           
 
Method Summary
 java.lang.String getElementName()
          Returns the XML element name of the extension sub-packet root element.
 java.lang.String getNamespace()
          Returns the XML namespace of the extension sub-packet root element.
 java.lang.String getNode()
          Returns the stamp that uniquely identifies the offline message.
 void setNode(java.lang.String node)
          Sets the stamp that uniquely identifies the offline message.
 java.lang.String toXML()
          Returns the XML representation of the PacketExtension.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfflineMessageInfo

public OfflineMessageInfo()
Method Detail

getElementName

public java.lang.String getElementName()
Returns the XML element name of the extension sub-packet root element. Always returns "offline"

Specified by:
getElementName in interface PacketExtension
Returns:
the XML element name of the packet extension.

getNamespace

public java.lang.String getNamespace()
Returns the XML namespace of the extension sub-packet root element. According the specification the namespace is always "http://jabber.org/protocol/offline"

Specified by:
getNamespace in interface PacketExtension
Returns:
the XML namespace of the packet extension.

getNode

public java.lang.String getNode()
Returns the stamp that uniquely identifies the offline message. This stamp may be used for deleting the offline message. 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.

setNode

public void setNode(java.lang.String node)
Sets the stamp that uniquely identifies the offline message. This stamp may be used for deleting the offline message. The stamp may be of the form UTC timestamps but it is not required to have that format.

Parameters:
node - the stamp that uniquely identifies the offline message.

toXML

public java.lang.String toXML()
Description copied from interface: PacketExtension
Returns the XML representation of the PacketExtension.

Specified by:
toXML in interface PacketExtension
Returns:
the packet extension as XML.

Smack

Copyright © 2003-2007 Jive Software.