public class Forwarded
extends java.lang.Object
implements org.jivesoftware.smack.packet.PacketExtension
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELEMENT_NAME |
static java.lang.String |
NAMESPACE |
| Constructor and Description |
|---|
Forwarded(DelayInfo delay,
org.jivesoftware.smack.packet.Packet fwdPacket)
Creates a new Forwarded packet extension.
|
Forwarded(org.jivesoftware.smack.packet.Packet fwdPacket)
Creates a new Forwarded packet extension.
|
| Modifier and Type | Method and Description |
|---|---|
DelayInfo |
getDelayInfo()
get the timestamp of the forwarded packet.
|
java.lang.String |
getElementName() |
org.jivesoftware.smack.packet.Packet |
getForwardedPacket()
get the packet forwarded by this stanza.
|
java.lang.String |
getNamespace() |
java.lang.String |
toXML() |
public static final java.lang.String NAMESPACE
public static final java.lang.String ELEMENT_NAME
public Forwarded(DelayInfo delay, org.jivesoftware.smack.packet.Packet fwdPacket)
delay - an optional DelayInfo timestamp of the packet.fwdPacket - the packet that is forwarded (required).public Forwarded(org.jivesoftware.smack.packet.Packet fwdPacket)
fwdPacket - the packet that is forwarded (required).public java.lang.String getElementName()
getElementName in interface org.jivesoftware.smack.packet.PacketExtensionpublic java.lang.String getNamespace()
getNamespace in interface org.jivesoftware.smack.packet.PacketExtensionpublic java.lang.String toXML()
toXML in interface org.jivesoftware.smack.packet.PacketExtensionpublic org.jivesoftware.smack.packet.Packet getForwardedPacket()
Packet instance (typically a message) that was forwarded.