public final class AdvancedMessageProcessing extends StreamFeature
The implementation of the <amp/>
element in the http://jabber.org/protocol/amp
namespace.
This class is immutable.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAMESPACE
|
Constructor and Description |
---|
AdvancedMessageProcessing(java.util.Collection<Rule> rules)
Constructs an
<amp/> element with rules. |
AdvancedMessageProcessing(java.util.Collection<Rule> rules,
java.lang.Boolean perHop)
Constructs an
<amp/> element with rules and a per-hop attribute. |
AdvancedMessageProcessing(java.util.List<Rule> rules,
Rule.Action status,
Jid from,
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 |
---|---|
Jid |
getFrom()
The ‘from’ attribute specifies the original sender of the containing
<message/> stanza. |
java.util.List<Rule> |
getRules()
Gets the rules.
|
Rule.Action |
getStatus()
The ‘status’ attribute specifies the reason for this
<amp/> element. |
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, isMandatory, requiresRestart
public static final java.lang.String NAMESPACE
public AdvancedMessageProcessing(Rule... rules)
Constructs an <amp/>
element with rules.
rules
- The rules.public AdvancedMessageProcessing(java.util.Collection<Rule> rules)
Constructs an <amp/>
element with rules.
rules
- The rules.public AdvancedMessageProcessing(java.util.Collection<Rule> rules, java.lang.Boolean perHop)
Constructs an <amp/>
element with rules and a per-hop attribute.
rules
- The rules.perHop
- The per-hop attribute.public AdvancedMessageProcessing(java.util.List<Rule> rules, Rule.Action status, Jid from, Jid to)
Constructs an <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 java.util.List<Rule> getRules()
Gets the rules.
public final 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.
public final Rule.Action getStatus()
The ‘status’ attribute specifies the reason for this <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 Jid getFrom()
The ‘from’ attribute specifies the original sender of the containing <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 Jid getTo()
The ‘to’ attribute specifies the original (intended) recipient of the containing <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–2019 XMPP.rocks. All rights reserved.