Class Forwarded
- java.lang.Object
-
- rocks.xmpp.extensions.forward.model.Forwarded
-
public final class Forwarded extends Object
The implementation of the<forwarded/>
element in theurn:xmpp:forward:0
namespace.This class is immutable.
- See Also:
- XEP-0297: Stanza Forwarding, XML Schema
-
-
Constructor Summary
Constructors Constructor Description Forwarded(Stanza stanza)
Creates a forwarded element.Forwarded(Stanza stanza, DelayedDelivery delayedDelivery)
Creates a forwarded element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DelayedDelivery
getDelayedDelivery()
Gets the date, when the forwarding entity received the forwarded stanza.Stanza
getStanza()
Gets the forwarded stanza.
-
-
-
Field Detail
-
NAMESPACE
public static final String NAMESPACE
urn:xmpp:forward:0- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Forwarded
public Forwarded(Stanza stanza)
Creates a forwarded element.- Parameters:
stanza
- The stanza to forward.
-
Forwarded
public Forwarded(Stanza stanza, DelayedDelivery delayedDelivery)
Creates a forwarded element.- Parameters:
delayedDelivery
- The delayed delivery, which indicates, when the forwarded stanza was originally received by the forwarder.stanza
- The stanza to forward.
-
-
Method Detail
-
getDelayedDelivery
public final DelayedDelivery getDelayedDelivery()
Gets the date, when the forwarding entity received the forwarded stanza.- Returns:
- The delay.
-
getStanza
public final Stanza getStanza()
Gets the forwarded stanza.- Returns:
- The forwarded stanza.
-
-