|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.directwebremoting.impl.PurgingDownloadManager
public abstract class PurgingDownloadManager
A DownloadManager that simply stores downloads in memory until they
are requested and then removes them.
| Nested Class Summary | |
|---|---|
class |
PurgingDownloadManager.DownloadPurge
Loop over the known downloads removing the ones that are out of date |
| Constructor Summary | |
|---|---|
PurgingDownloadManager()
Schedule cache purges |
|
| Method Summary | |
|---|---|
java.lang.String |
addFile(FileGenerator generator)
Inject a file into the system for later download. |
FileGenerator |
getFile(java.lang.String id)
Retrieve a file previously injected into the system with DownloadManager.addFile(FileGenerator) |
void |
setDownloadHandlerUrl(java.lang.String downloadHandlerUrl)
The URL part which we attach to the downloads. |
void |
setPurgeDownloadsAfter(long purgeDownloadsAfter)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PurgingDownloadManager()
| Method Detail |
|---|
public java.lang.String addFile(FileGenerator generator)
throws java.io.IOException
DownloadManager
addFile in interface DownloadManagergenerator - The representation of the file to inject
java.io.IOException - If there are problems reading from the FileGeneratorpublic FileGenerator getFile(java.lang.String id)
DownloadManagerDownloadManager.addFile(FileGenerator)
getFile in interface DownloadManagerid - The id of the FileGenerator to retrievepublic void setDownloadHandlerUrl(java.lang.String downloadHandlerUrl)
downloadHandlerUrl - The URL for this Handler.public void setPurgeDownloadsAfter(long purgeDownloadsAfter)
purgeDownloadsAfter - the purgeDownloadsAfter to set
|
Copyright ¬ 2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||