|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface HttpFile
A JavaBean that represents file that is downloaded from the Internet.
Method Summary | |
---|---|
String |
getDescription()
Description for this file (password etc.) |
long |
getDownloaded()
Returns value - how many bytes were already downloaded for this file. |
String |
getFileName()
Real physical file name of the downloaded file File name is initialized from given URL to some value. |
long |
getFileSize()
Method to get whole file size of the give file. |
FileState |
getFileState()
Getter |
URL |
getFileUrl()
URL to file that is given by user |
String |
getPluginID()
Plugin ID associated with this file |
Map<String,Object> |
getProperties()
Getter for property 'properties'. |
File |
getSaveToDirectory()
Returns target save directory |
DownloadState |
getState()
Returns current download state of file. |
void |
setDescription(String description)
Description for this file |
void |
setDownloaded(long downloaded)
Sets how many bytes were already downloaded for this file |
void |
setFileName(String fileName)
Sets file name |
void |
setFileSize(long fileSize)
Setter to update file size (of complete file) |
void |
setFileState(FileState state)
Setter |
void |
setNewURL(URL fileUrl)
Sets new URL for this file for downloading. |
void |
setPluginID(String pluginID)
Sets plugin ID associated with this file If pluginID is an empty string, the plugin ID selected automatically. |
void |
setState(DownloadState state)
Setter |
Method Detail |
---|
long getFileSize()
void setFileSize(long fileSize)
fileSize
- new value of file sizeDownloadState getState()
void setState(DownloadState state)
state
- new download state during downloadingFileState getFileState()
void setFileState(FileState state)
state
- new value of file stateURL getFileUrl()
String getFileName()
HttpDownloadClient.makeFinalRequestForFile(org.apache.commons.httpclient.HttpMethod, HttpFile, boolean);
void setFileName(String fileName)
fileName
- file namevoid setNewURL(URL fileUrl)
fileUrl
- new URLvoid setPluginID(String pluginID)
pluginID
- plugin IDString getPluginID()
String getDescription()
void setDescription(String description)
description
- new value descriptionlong getDownloaded()
void setDownloaded(long downloaded)
downloaded
- file size in bytesFile getSaveToDirectory()
Map<String,Object> getProperties()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |