nl.gx.webmanager.cms.core
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 Summary
 java.lang.String getAbsoluteUrl()
          Returns an absolute URL to this download.
 java.lang.String getFileName()
          Return the filename used in the url.
 long getFileSize()
          Return the size in bytes of the file.
 java.lang.String getUrl()
          Return url to the download.
 

Method Detail

getUrl

java.lang.String getUrl()
Return url to the download.

Returns:
url to the download.

getAbsoluteUrl

java.lang.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

java.lang.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.


Copyright © 2007-2011 GX Software BV. All Rights Reserved.