org.directwebremoting.impl
Class FileStoreDownloadManager

java.lang.Object
  extended by org.directwebremoting.impl.PurgingDownloadManager
      extended by 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]

Nested Class Summary
 
Nested classes/interfaces inherited from class org.directwebremoting.impl.PurgingDownloadManager
PurgingDownloadManager.DownloadPurge
 
Constructor Summary
FileStoreDownloadManager()
           
 
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 org.directwebremoting.impl.PurgingDownloadManager
addFileTransfer, setDownloadHandlerUrl, setIdGenerator, setPurgeDownloadsAfter, setScheduledThreadPoolExecutor
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.directwebremoting.extend.DownloadManager
addFileTransfer
 

Constructor Detail

FileStoreDownloadManager

public FileStoreDownloadManager()
Method Detail

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

Copyright 2008