|
Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jivesoftware.smackx.packet.DelayInformation
org.jivesoftware.smackx.packet.DelayInfo
public class DelayInfo
A decorator for the DelayInformation class to transparently support
both the new Delay Delivery specification XEP-0203 and
the old one XEP-0091.
Existing code can be backward compatible.
| Field Summary |
|---|
| Fields inherited from class org.jivesoftware.smackx.packet.DelayInformation |
|---|
XEP_0091_UTC_FORMAT |
| Constructor Summary | |
|---|---|
DelayInfo(DelayInformation delay)
Creates a new instance with given delay information. |
|
| Method Summary | |
|---|---|
String |
getElementName()
Returns the root element name. |
String |
getFrom()
Returns the JID of the entity that originally sent the packet or that delayed the delivery of the packet or null if this information is not available. |
String |
getNamespace()
Returns the root element XML namespace. |
String |
getReason()
Returns a natural-language description of the reason for the delay or null if this information is not available. |
Date |
getStamp()
Returns the timestamp when the packet was originally sent. |
void |
setFrom(String from)
Sets the JID of the entity that originally sent the packet or that delayed the delivery of the packet or null if this information is not available. |
void |
setReason(String reason)
Sets a natural-language description of the reason for the delay or null if this information is not available. |
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 |
|---|
public DelayInfo(DelayInformation delay)
delay - the delay information| Method Detail |
|---|
public String getFrom()
DelayInformation
getFrom in class DelayInformationpublic String getReason()
DelayInformation
getReason in class DelayInformationpublic Date getStamp()
DelayInformation
getStamp in class DelayInformationpublic void setFrom(String from)
DelayInformation
setFrom in class DelayInformationfrom - the JID of the entity that originally sent the packet.public void setReason(String reason)
DelayInformation
setReason in class DelayInformationreason - a natural-language description of the reason for the delay or null.public String getElementName()
PacketExtension
getElementName in interface PacketExtensiongetElementName in class DelayInformationpublic String getNamespace()
PacketExtension
getNamespace in interface PacketExtensiongetNamespace in class DelayInformationpublic String toXML()
PacketExtension
toXML in interface PacketExtensiontoXML in class DelayInformation
|
Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||