public final class AdvancedMessageProcessing extends StreamFeature
<amp/> element in the http://jabber.org/protocol/amp namespace.
This class is immutable.
| Modifier and Type | Field and Description |
|---|---|
static String |
NAMESPACE
http://jabber.org/protocol/amp
|
| Constructor and Description |
|---|
AdvancedMessageProcessing(Collection<Rule> rules)
Constructs an
<amp/> element with rules. |
AdvancedMessageProcessing(Collection<Rule> rules,
Boolean perHop)
Constructs an
<amp/> element with rules and a per-hop attribute. |
AdvancedMessageProcessing(List<Rule> rules,
Rule.Action status,
rocks.xmpp.addr.Jid from,
rocks.xmpp.addr.Jid to)
Constructs an
<amp/> element with rules, status, from and to attribute. |
AdvancedMessageProcessing(Rule... rules)
Constructs an
<amp/> element with rules. |
| Modifier and Type | Method and Description |
|---|---|
rocks.xmpp.addr.Jid |
getFrom()
The 'from' attribute specifies the original sender of the containing
<message/> stanza. |
List<Rule> |
getRules()
Gets the rules.
|
Rule.Action |
getStatus()
The 'status' attribute specifies the reason for this
<amp/> element. |
rocks.xmpp.addr.Jid |
getTo()
The 'to' attribute specifies the original (intended) recipient of the containing
<message/> stanza. |
boolean |
isPerHop()
The 'per-hop' attribute flags the contained ruleset for processing at each server in the route between the original sender and original intended recipient.
|
compareTo, getPriority, isMandatorypublic static final String NAMESPACE
public AdvancedMessageProcessing(Rule... rules)
<amp/> element with rules.rules - The rules.public AdvancedMessageProcessing(Collection<Rule> rules)
<amp/> element with rules.rules - The rules.public AdvancedMessageProcessing(Collection<Rule> rules, Boolean perHop)
<amp/> element with rules and a per-hop attribute.rules - The rules.perHop - The per-hop attribute.public AdvancedMessageProcessing(List<Rule> rules, Rule.Action status, rocks.xmpp.addr.Jid from, rocks.xmpp.addr.Jid to)
<amp/> element with rules, status, from and to attribute.rules - The rules.status - The status.from - The from attribute.to - The to attribute.public final boolean isPerHop()
public final Rule.Action getStatus()
<amp/> element. When specifying semantics to be applied (client to server), this attribute MUST NOT be present. When replying to a sending entity regarding a met condition, this attribute MUST be present and SHOULD be the value of the 'action' attribute for the triggered rule. (Note: Individual action definitions MAY provide their own requirements.)public final rocks.xmpp.addr.Jid getFrom()
<message/> stanza. This attribute MUST be specified for any <message/> stanza sent from a supporting server, regardless of the recipient. It SHOULD NOT be specified otherwise. The value of the 'from' attribute MUST be the full JID (node@domain/resource) of the sender for the original <message/> stanza.public final rocks.xmpp.addr.Jid getTo()
<message/> stanza. This attribute MUST be specified for any <message/> stanza sent from a supporting server, regardless of the recipient. It SHOULD NOT be specified otherwise. The value of the 'to' attribute MUST be the full JID (node@domain/resource) of the intended recipient for the original <message/> stanza.Copyright © 2014–2016 XMPP.rocks. All rights reserved.