Class OfflineMessageInfo
- java.lang.Object
-
- org.jivesoftware.smackx.offline.packet.OfflineMessageInfo
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
public class OfflineMessageInfo extends java.lang.Object implements ExtensionElement
OfflineMessageInfo is an extension included in the retrieved offline messages requested by theOfflineMessageManager
. 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OfflineMessageInfo.Provider
-
Field Summary
Fields Modifier and Type Field Description static javax.xml.namespace.QName
QNAME
-
Constructor Summary
Constructors Constructor Description OfflineMessageInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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(XmlEnvironment enclosingNamespace)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
QNAME
public static final javax.xml.namespace.QName QNAME
-
-
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 interfaceNamedElement
- Returns:
- the XML element name of the stanza 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 interfaceFullyQualifiedElement
- Returns:
- the XML namespace of the stanza 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(XmlEnvironment enclosingNamespace)
-
-