EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.tucana
Class DownloadCommandPeer

java.lang.Object
  extended by nextapp.echo.webcontainer.AbstractCommandSynchronizePeer
      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class nextapp.echo.webcontainer.AbstractCommandSynchronizePeer
AbstractCommandSynchronizePeer.IndexedPropertyPeer, AbstractCommandSynchronizePeer.PropertyPeer
 
Constructor Summary
DownloadCommandPeer()
           
 
Method Summary
static DownloadCommand getAndRemoveDownload(String id)
          Returns the DownloadCommand having the passed id, and removes it from the internal map.
 Class getCommandClass()
           
 void init(nextapp.echo.app.util.Context context)
           
 
Methods inherited from class nextapp.echo.webcontainer.AbstractCommandSynchronizePeer
addProperty, addProperty, addProperty, getClientCommandType, getProperty, getPropertyIndices, getPropertyNames, isPropertyIndexed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DownloadCommandPeer

public DownloadCommandPeer()
Method Detail

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.

EchoPoint API - 3.0.0b5
App Webcontainer