org.directwebremoting.extend
Interface DownloadManager

All Known Implementing Classes:
DataUrlDownloadManager, FileStoreDownloadManager, InMemoryDownloadManager, PurgingDownloadManager

public interface DownloadManager

A DownloadManager allows you to inject files into the system and then retrieve them via a servlet at some later date.

Author:
Joe Walker [joe at getahead dot ltd dot uk]

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 addFile(FileGenerator)
 

Method Detail

addFile

java.lang.String addFile(FileGenerator generator)
                         throws java.io.IOException
Inject a file into the system for later download.

Parameters:
generator - The representation of the file to inject
Returns:
A URL for how to allow download of this data at a later time
Throws:
java.io.IOException - If there are problems reading from the FileGenerator

getFile

FileGenerator getFile(java.lang.String id)
Retrieve a file previously injected into the system with addFile(FileGenerator)

Parameters:
id - The id of the FileGenerator to retrieve

Copyright ¬ 2005