org.jivesoftware.smackx.packet
Class DelayInfo
java.lang.Object
org.jivesoftware.smackx.packet.DelayInformation
org.jivesoftware.smackx.packet.DelayInfo
- All Implemented Interfaces:
- org.jivesoftware.smack.packet.PacketExtension
public class DelayInfo
- extends DelayInformation
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.
- Author:
- Robin Collier
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DelayInfo
public DelayInfo(DelayInformation delay)
getFrom
public java.lang.String getFrom()
- Overrides:
getFrom
in class DelayInformation
getReason
public java.lang.String getReason()
- Overrides:
getReason
in class DelayInformation
getStamp
public java.util.Date getStamp()
- Overrides:
getStamp
in class DelayInformation
setFrom
public void setFrom(java.lang.String from)
- Overrides:
setFrom
in class DelayInformation
setReason
public void setReason(java.lang.String reason)
- Overrides:
setReason
in class DelayInformation
getElementName
public java.lang.String getElementName()
- Specified by:
getElementName
in interface org.jivesoftware.smack.packet.PacketExtension
- Overrides:
getElementName
in class DelayInformation
getNamespace
public java.lang.String getNamespace()
- Specified by:
getNamespace
in interface org.jivesoftware.smack.packet.PacketExtension
- Overrides:
getNamespace
in class DelayInformation
toXML
public java.lang.String toXML()
- Specified by:
toXML
in interface org.jivesoftware.smack.packet.PacketExtension
- Overrides:
toXML
in class DelayInformation