public class Forwarded
extends java.lang.Object
implements org.jivesoftware.smack.packet.PacketExtension
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELEMENT |
static java.lang.String |
NAMESPACE |
| Constructor and Description |
|---|
Forwarded(DelayInformation 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 |
|---|---|
static Forwarded |
from(org.jivesoftware.smack.packet.Packet packet) |
DelayInformation |
getDelayInfo()
Deprecated.
Use
getDelayInformation() instead. |
DelayInformation |
getDelayInformation()
get the timestamp of the forwarded packet.
|
java.lang.String |
getElementName() |
org.jivesoftware.smack.packet.Packet |
getForwardedPacket()
get the packet forwarded by this stanza.
|
static Forwarded |
getFrom(org.jivesoftware.smack.packet.Packet packet)
Deprecated.
use
from(Packet) instead |
java.lang.String |
getNamespace() |
org.jivesoftware.smack.util.XmlStringBuilder |
toXML() |
public static final java.lang.String NAMESPACE
public static final java.lang.String ELEMENT
public Forwarded(DelayInformation delay, org.jivesoftware.smack.packet.Packet fwdPacket)
delay - an optional DelayInformation 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.NamedElementpublic java.lang.String getNamespace()
getNamespace in interface org.jivesoftware.smack.packet.PacketExtensionpublic org.jivesoftware.smack.util.XmlStringBuilder toXML()
toXML in interface org.jivesoftware.smack.packet.Element@Deprecated public static Forwarded getFrom(org.jivesoftware.smack.packet.Packet packet)
from(Packet) insteadpacket - public static Forwarded from(org.jivesoftware.smack.packet.Packet packet)
packet - public org.jivesoftware.smack.packet.Packet getForwardedPacket()
Packet instance (typically a message) that was forwarded.public DelayInformation getDelayInfo()
getDelayInformation() instead.DelayInformation representing the time when the original packet was sent. May be null.public DelayInformation getDelayInformation()
DelayInformation representing the time when the original packet was sent. May be null.