public class DelayInformation extends Object implements PacketExtension
Modifier and Type | Field and Description |
---|---|
static DateFormat |
XEP_0091_UTC_FORMAT
Date format according to the obsolete XEP-0091 specification.
|
Constructor and Description |
---|
DelayInformation(Date stamp)
Creates a new instance with the specified timestamp.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final DateFormat XEP_0091_UTC_FORMAT
Date formats are not synchronized. Since multiple threads access the format concurrently, it must be synchronized externally.
public DelayInformation(Date stamp)
stamp
- the timestamppublic 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