|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ShareDownloadService
Interface that represents downloading plugin for service/hoster on the web
Method Summary | |
---|---|
Icon |
getFaviconImage()
Returns small icon (16x16) that represents service on the web |
String |
getId()
Unique ID of the plugin |
int |
getMaxDownloadsFromOneIP()
Return max concurrently downloadable files through 1 IP on the representing service/hoster |
String |
getName()
Getter - human readable |
PluginContext |
getPluginContext()
Returns instance of plugin context to allow access UI or Locale storage |
void |
run(HttpFileDownloadTask downloadTask)
Main executable method for downloading file |
void |
runCheck(HttpFileDownloadTask downloadTask)
Checks for file existence before downloading Shouldn't be called if the supportsRunCheck method returns false |
void |
setPluginContext(PluginContext pluginContext)
Sets the new plugin context for this plugin |
void |
showOptions()
Method called from user preferences to show configurable dialog to user |
boolean |
supportsRunCheck()
Checks whether implementation/service supports a check for file existence before downloading |
Method Detail |
---|
String getName()
String getId()
int getMaxDownloadsFromOneIP()
boolean supportsRunCheck()
Icon getFaviconImage()
void run(HttpFileDownloadTask downloadTask) throws Exception
downloadTask
- file that is being downloaded
Exception
- exception during downloadingvoid runCheck(HttpFileDownloadTask downloadTask) throws Exception
downloadTask
- file that is being checked
Exception
IllegalStateException
- if service does not supports checking filevoid showOptions() throws Exception
Exception
PluginContext getPluginContext()
void setPluginContext(PluginContext pluginContext)
pluginContext
- instance of plugin context
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |