Enum Rule.Action

    • Enum Constant Detail

      • ALERT

        public static final Rule.Action ALERT
        The "alert" action triggers a reply <message/> stanza to the sending entity.
        See Also:
        3.4.1 alert
      • DROP

        public static final Rule.Action DROP
        The "drop" action silently discards the message from any further delivery attempts and ensures that it is not placed into offline storage.
        See Also:
        3.4.2 drop
      • ERROR

        public static final Rule.Action ERROR
        The "error" action triggers a reply <message/> stanza of type "error" to the sending entity.
        See Also:
        3.4.3 error
      • NOTIFY

        public static final Rule.Action NOTIFY
        The "notify" action triggers a reply <message/> stanza to the sending entity.
        See Also:
        3.4.4 notify
    • Method Detail

      • values

        public static Rule.Action[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Rule.Action c : Rule.Action.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Rule.Action valueOf​(String name)
        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 name
        NullPointerException - if the argument is null