public class Forwarded
extends java.lang.Object
implements org.jivesoftware.smack.packet.ExtensionElement
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.Stanza fwdPacket)
Creates a new Forwarded stanza(/packet) extension.
|
Forwarded(org.jivesoftware.smack.packet.Stanza fwdPacket)
Creates a new Forwarded stanza(/packet) extension.
|
Modifier and Type | Method and Description |
---|---|
static Forwarded |
from(org.jivesoftware.smack.packet.Stanza packet) |
DelayInformation |
getDelayInformation()
get the timestamp of the forwarded packet.
|
java.lang.String |
getElementName() |
org.jivesoftware.smack.packet.Stanza |
getForwardedPacket()
get the stanza(/packet) forwarded by this stanza.
|
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.Stanza fwdPacket)
delay
- an optional DelayInformation
timestamp of the packet.fwdPacket
- the stanza(/packet) that is forwarded (required).public Forwarded(org.jivesoftware.smack.packet.Stanza fwdPacket)
fwdPacket
- the stanza(/packet) that is forwarded (required).public java.lang.String getElementName()
getElementName
in interface org.jivesoftware.smack.packet.NamedElement
public java.lang.String getNamespace()
getNamespace
in interface org.jivesoftware.smack.packet.ExtensionElement
public org.jivesoftware.smack.util.XmlStringBuilder toXML()
toXML
in interface org.jivesoftware.smack.packet.Element
public org.jivesoftware.smack.packet.Stanza getForwardedPacket()
Stanza
instance (typically a message) that was forwarded.public DelayInformation getDelayInformation()
DelayInformation
representing the time when the original stanza(/packet) was sent. May be null.public static Forwarded from(org.jivesoftware.smack.packet.Stanza packet)
packet
-