Interface Download

  • All Known Subinterfaces:
    InternalDownload

    public interface Download
    Models a download object. A download has an url where the download may be downloaded, a filename that may be presented to the user and that will be used to name the download and a filesize.
    • Method Detail

      • getUrl

        String getUrl()
        Return url to the download.
        Returns:
        url to the download.
      • getAbsoluteUrl

        String getAbsoluteUrl()
        Returns an absolute URL to this download. Requesting this URL will stream the download to the client.
        Returns:
        The absolute URL to this download.
      • getFileName

        String getFileName()
        Return the filename used in the url.
        Returns:
        the filename used in the url.
      • getFileSize

        long getFileSize()
        Return the size in bytes of the file.
        Returns:
        the size in bytes of the file or 0 if the file does not exist.
      • getInputStream

        InputStream getInputStream()
        Return the input stream of the file.
        Returns:
        the input stream