Class AuDownload


  • public class AuDownload
    extends AuResponse
    A response to ask the client to download the specified URI.

    data[0]: the URL to download the file from.

    Since:
    3.0.0
    Author:
    tomyeh
    • Constructor Detail

      • AuDownload

        public AuDownload​(java.lang.String url)
        Constructs with an encoded URL. To work with WebSphere 5.1 and some other old server, it is suggested to use AuDownload(DeferredValue) and then invoke encodeURL in the rendering phase.
        Parameters:
        url - the URI of the file to download, never null.
      • AuDownload

        public AuDownload​(DeferredValue deferredURI)
        Constructs with a deferred URI. To work with WebSphere 5.1 and some other old server, it is suggested to use AuDownload(DeferredValue) and then invoke encodeURL in the rendering phase.
        Parameters:
        deferredURI - the URI but the value will be evaluated later.
        Since:
        3.5.1