Enum AjaxDownloadBehavior.Location

    • Enum Constant Detail

      • IFrame

        public static final AjaxDownloadBehavior.Location IFrame
        The resource will be downloaded via a temporary created iframe, the resource has to be a ContentDisposition.ATTACHMENT.

        This is recommended when there are resources in the DOM which will be closed automatically on JavaScript unload event, like WebSockets. Supports both success and failure callbacks!

      • NewWindow

        public static final AjaxDownloadBehavior.Location NewWindow
        The resource will be downloaded in a new browser window by using JavaScript window.open() API, the resource has to be a ContentDisposition.INLINE.
    • Method Detail

      • values

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

        public static AjaxDownloadBehavior.Location 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