org.directwebremoting.impl
Class DataUrlDownloadManager
java.lang.Object
org.directwebremoting.impl.DataUrlDownloadManager
- All Implemented Interfaces:
- DownloadManager
public class DataUrlDownloadManager
- extends java.lang.Object
- implements DownloadManager
A download manager that works my returning a data: URL so the data is
sent directly without waiting in some store.
This method has the benefit that it works in a clustered environment
and is quite simple. However it does not work in IE.
- Author:
- Jose Noheda [jose dot noheda at gmail dot com], Joe Walker [joe at getahead dot ltd dot uk]
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataUrlDownloadManager
public DataUrlDownloadManager()
addFile
public java.lang.String addFile(FileGenerator generator)
throws java.io.IOException
- Description copied from interface:
DownloadManager
- Inject a file into the system for later download.
- Specified by:
addFile in interface DownloadManager
- 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
public FileGenerator getFile(java.lang.String id)
- Description copied from interface:
DownloadManager
- Retrieve a file previously injected into the system with
DownloadManager.addFile(FileGenerator)
- Specified by:
getFile in interface DownloadManager
- Parameters:
id - The id of the FileGenerator to retrieve