|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jivesoftware.smackx.packet.DelayInformation
public class DelayInformation
Represents timestamp information about data stored for later delivery. A DelayInformation will always includes the timestamp when the packet was originally sent and may include more information such as the JID of the entity that originally sent the packet as well as the reason for the dealy.
For more information see JEP-91.
Field Summary | |
---|---|
static SimpleDateFormat |
NEW_UTC_FORMAT
New date format based on JEP-82 that some clients may use when sending delayed dates. |
static SimpleDateFormat |
UTC_FORMAT
|
Constructor Summary | |
---|---|
DelayInformation(Date stamp)
Creates a new instance with the specified timestamp. |
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 timstamp 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 reppresentation of the PacketExtension. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static SimpleDateFormat UTC_FORMAT
public static SimpleDateFormat NEW_UTC_FORMAT
Constructor Detail |
---|
public DelayInformation(Date stamp)
Method Detail |
---|
public String getFrom()
public void setFrom(String from)
from
- the JID of the entity that originally sent the packet.public Date getStamp()
public String getReason()
public void setReason(String reason)
reason
- a natural-language description of the reason for the delay or null.public String getElementName()
PacketExtension
getElementName
in interface PacketExtension
public String getNamespace()
PacketExtension
getNamespace
in interface PacketExtension
public String toXML()
PacketExtension
toXML
in interface PacketExtension
|
Smack | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |