org.directwebremoting.impl
Class FileStoreDownloadManager
java.lang.Object
org.directwebremoting.impl.PurgingDownloadManager
org.directwebremoting.impl.FileStoreDownloadManager
- All Implemented Interfaces:
- DownloadManager, InitializingBean
public class FileStoreDownloadManager
- extends PurgingDownloadManager
- implements DownloadManager, InitializingBean
A DownloadManager that stores the files on disk.
This implementation has the advantage that does not require large amounts of
memory, however some writable disk must be available, and
- Author:
- Joe Walker [joe at getahead dot ltd dot uk]
|
Method Summary |
void |
afterContainerSetup(Container container)
This method allows the bean instance to perform initialization only
possible when all bean properties have been set |
FileTransfer |
getFileTransfer(java.lang.String id)
Retrieve a FileGenerator given the id that it was stored under |
void |
setDownloadFileCacheDir(java.lang.String downloadFileCacheDir)
Set the directory to which we write the downloaded file cache |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileStoreDownloadManager
public FileStoreDownloadManager()
afterContainerSetup
public void afterContainerSetup(Container container)
- Description copied from interface:
InitializingBean
This method allows the bean instance to perform initialization only
possible when all bean properties have been set
- Specified by:
afterContainerSetup in interface InitializingBean
- Parameters:
container - The container that is doing the initialization
getFileTransfer
public FileTransfer getFileTransfer(java.lang.String id)
throws java.io.FileNotFoundException
- Description copied from interface:
DownloadManager
- Retrieve a FileGenerator given the id that it was stored under
- Specified by:
getFileTransfer in interface DownloadManager
- Parameters:
id - The id to lookup
- Returns:
- The matching FileGenerator or null if no match was found
- Throws:
java.io.FileNotFoundException
setDownloadFileCacheDir
public void setDownloadFileCacheDir(java.lang.String downloadFileCacheDir)
- Set the directory to which we write the downloaded file cache
- Parameters:
downloadFileCacheDir - the downloadFileCache to set