Package com.iizix.server.wsfile
Class WSFileDownload
java.lang.Object
com.iizix.server.wsfile.WSFileDownload
- All Implemented Interfaces:
IWSFileDownload
Class used to hold information for file download into a file provider.
- Author:
- Christopher Mindus
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Disposes of the download if in progress.Gets the description of the download file.Gets the exception from the download process or when writing the file.getFile()
Gets the download file.getID()
Gets the ID used for database identification.getURL()
Gets the URL.boolean
Checks if the download is disposed of (during progress).toString()
Returns a string representation of the file download instance.
Method Details
getURL
Gets the URL.- Specified by:
getURL
in interfaceIWSFileDownload
- Returns:
- The URL.
getID
Gets the ID used for database identification.- Specified by:
getID
in interfaceIWSFileDownload
- Returns:
- A Long or String,
null
when database is not used.
getDescription
Gets the description of the download file.- Specified by:
getDescription
in interfaceIWSFileDownload
- Returns:
- The description.
dispose
public void dispose()Disposes of the download if in progress.- Specified by:
dispose
in interfaceIWSFileDownload
isDisposed
public boolean isDisposed()Checks if the download is disposed of (during progress).- Specified by:
isDisposed
in interfaceIWSFileDownload
- Returns:
- The dispose flag:
true
if download has been disposed of, i.e. canceled,false
otherwise.
getFile
Gets the download file.- Specified by:
getFile
in interfaceIWSFileDownload
- Returns:
- The file, or null if an exception occurred.
getException
Gets the exception from the download process or when writing the file.- Specified by:
getException
in interfaceIWSFileDownload
- Returns:
- The exception, or null if no error occurred.
toString
Returns a string representation of the file download instance.