echopoint.tucana
Class DownloadCommandPeer
java.lang.Object
nextapp.echo.webcontainer.AbstractCommandSynchronizePeer
echopoint.tucana.DownloadCommandPeer
- All Implemented Interfaces:
- CommandSynchronizePeer
public class DownloadCommandPeer
- extends AbstractCommandSynchronizePeer
Synchronisation peer for the DownloadCommand command.
- Version:
- $Id: DownloadCommandPeer.java 218 2009-06-05 12:25:29Z sptrakesh $
- Author:
- Rakesh Vidyadharan 2008-11-10
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DownloadCommandPeer
public DownloadCommandPeer()
init
public void init(nextapp.echo.app.util.Context context)
- Specified by:
init in interface CommandSynchronizePeer- Overrides:
init in class AbstractCommandSynchronizePeer
getCommandClass
public Class getCommandClass()
getAndRemoveDownload
public static DownloadCommand getAndRemoveDownload(String id)
- Returns the
DownloadCommand having the passed
id, and removes it from the internal map.
This means that a particular download command
cannot be re-used. A new download command must be created every time,
e.g. each time your download button is clicked.
This is necessary to prevent memory leaks.
- Parameters:
id - The download id.
- Returns:
- The
DownloadCommand instance.