Enum AjaxOperation

    • Method Detail

      • values

        public static AjaxOperation[] 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 (AjaxOperation c : AjaxOperation.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static AjaxOperation 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
      • requiresController

        public boolean requiresController()
      • isWriting

        public boolean isWriting()
        Does this operation write something, and has therefore to be requested by POST? The synchronizer token is required on a POST whatever its URL, whereas it is required on a GET only when its URL holds one of a few keywords, which no URL of this servlet holds.
        Returns:
        true if the operation writes something, false if it only reads.