org.directwebremoting.extend
Class DataUrlDownloadManager
java.lang.Object
org.directwebremoting.extend.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()
addFileTransfer
public java.lang.String addFileTransfer(FileTransfer transfer)
throws java.io.IOException
- Description copied from interface:
DownloadManager
- Inject a file into the system for later download.
- Specified by:
addFileTransfer in interface DownloadManager
- Parameters:
transfer - 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 FileTransfer
getFileTransfer
public FileTransfer getFileTransfer(java.lang.String id)
- 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