Enum AMPExtension.Action
- All Implemented Interfaces:
Serializable
,Comparable<AMPExtension.Action>
- Enclosing class:
- AMPExtension
amp action attribute.
See http://xmpp.org/extensions/xep-0079.html#actions-def
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe "alert" action triggers a reply <message/> stanza to the sending entity.The "drop" action silently discards the message from any further delivery attempts and ensures that it is not placed into offline storage.The "error" action triggers a reply <message/> stanza of type "error" to the sending entity.The "notify" action triggers a reply <message/> stanza to the sending entity. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic AMPExtension.Action
Returns the enum constant of this type with the specified name.static AMPExtension.Action[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
alert
The "alert" action triggers a reply <message/> stanza to the sending entity. This <message/> stanza MUST contain the element <amp status='alert'/>, which itself contains the <rule/> that triggered this action. In all other respects, this action behaves as "drop". -
drop
The "drop" action silently discards the message from any further delivery attempts and ensures that it is not placed into offline storage. The drop MUST NOT result in other responses. -
error
The "error" action triggers a reply <message/> stanza of type "error" to the sending entity. The <message/> stanza's <error/> child MUST contain a <failed-rules xmlns='http://jabber.org/protocol/amp#errors'/> error condition, which itself contains the rules that triggered this action. -
notify
The "notify" action triggers a reply <message/> stanza to the sending entity. This <message/> stanza MUST contain the element <amp status='notify'/>, which itself contains the <rule/> that triggered this action. Unlike the other actions, this action does not override the default behavior for a server. Instead, the server then executes its default behavior after sending the notify.
-
-
Field Details
-
ATTRIBUTE_NAME
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-