|
Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jivesoftware.smackx.forward.Forwarded
public class Forwarded
Packet extension for XEP-0297: Stanza Forwarding.
| Field Summary | |
|---|---|
static java.lang.String |
ELEMENT_NAME
|
static java.lang.String |
NAMESPACE
|
| Constructor Summary | |
|---|---|
Forwarded(DelayInfo delay,
Packet fwdPacket)
Creates a new Forwarded packet extension. |
|
Forwarded(Packet fwdPacket)
Creates a new Forwarded packet extension. |
|
| Method Summary | |
|---|---|
DelayInfo |
getDelayInfo()
get the timestamp of the forwarded packet. |
java.lang.String |
getElementName()
Returns the root element name. |
Packet |
getForwardedPacket()
get the packet forwarded by this stanza. |
java.lang.String |
getNamespace()
Returns the root element XML namespace. |
java.lang.String |
toXML()
Returns the XML representation 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 final java.lang.String NAMESPACE
public static final java.lang.String ELEMENT_NAME
| Constructor Detail |
|---|
public Forwarded(DelayInfo delay,
Packet fwdPacket)
delay - an optional DelayInfo timestamp of the packet.fwdPacket - the packet that is forwarded (required).public Forwarded(Packet fwdPacket)
delay - an optional DelayInfo timestamp of the packet.fwdPacket - the packet that is forwarded (required).| Method Detail |
|---|
public java.lang.String getElementName()
PacketExtension
getElementName in interface PacketExtensionpublic java.lang.String getNamespace()
PacketExtension
getNamespace in interface PacketExtensionpublic java.lang.String toXML()
PacketExtension
toXML in interface PacketExtensionpublic Packet getForwardedPacket()
Packet instance (typically a message) that was forwarded.public DelayInfo getDelayInfo()
DelayInfo representing the time when the original packet was sent. May be null.
|
Smack | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||