public static enum Rule.Action extends java.lang.Enum<Rule.Action>
The action defines what occurs when a particular rule is triggered. The value of the action attribute determines the behavior if the rule’s condition is met.
Enum Constant and Description |
---|
ALERT
The "alert" action triggers a reply
<message/> stanza to the sending entity. |
DROP
The "drop" action silently discards the message from any further delivery attempts and ensures that it is not placed into offline storage.
|
ERROR
The "error" action triggers a reply
<message/> stanza of type "error" to the sending entity. |
NOTIFY
The "notify" action triggers a reply
<message/> stanza to the sending entity. |
Modifier and Type | Method and Description |
---|---|
static Rule.Action |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Rule.Action[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Rule.Action ALERT
<message/>
stanza to the sending entity.public static final Rule.Action DROP
public static final Rule.Action ERROR
<message/>
stanza of type "error" to the sending entity.public static final Rule.Action NOTIFY
<message/>
stanza to the sending entity.public static Rule.Action[] values()
for (Rule.Action c : Rule.Action.values()) System.out.println(c);
public static Rule.Action valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullCopyright © 2014–2019 XMPP.rocks. All rights reserved.