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 SummaryModifier and TypeMethodDescription- void- 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.- booleanChecks if the download is disposed of (during progress).- toString()Returns a string representation of the file download instance.
- Method Details- getURLGets the URL.- Specified by:
- getURLin interface- IWSFileDownload
- Returns:
- The URL.
 
- getIDGets the ID used for database identification.- Specified by:
- getIDin interface- IWSFileDownload
- Returns:
- A Long or String, nullwhen database is not used.
 
- getDescriptionGets the description of the download file.- Specified by:
- getDescriptionin interface- IWSFileDownload
- Returns:
- The description.
 
- disposepublic void dispose()Disposes of the download if in progress.- Specified by:
- disposein interface- IWSFileDownload
 
- isDisposedpublic boolean isDisposed()Checks if the download is disposed of (during progress).- Specified by:
- isDisposedin interface- IWSFileDownload
- Returns:
- The dispose flag: trueif download has been disposed of, i.e. canceled,falseotherwise.
 
- getFileGets the download file.- Specified by:
- getFilein interface- IWSFileDownload
- Returns:
- The file, or null if an exception occurred.
 
- getExceptionGets the exception from the download process or when writing the file.- Specified by:
- getExceptionin interface- IWSFileDownload
- Returns:
- The exception, or null if no error occurred.
 
- toStringReturns a string representation of the file download instance.