EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.tucana
Class DownloadService

java.lang.Object
  extended by echopoint.tucana.DownloadService
All Implemented Interfaces:
Service

public class DownloadService
extends Object
implements Service

Services requests to download files.

Version:
$Id: DownloadService.java 116 2009-02-19 00:23:08Z sptrakesh $
Author:
Echo File Transfer Library

Field Summary
 
Fields inherited from interface nextapp.echo.webcontainer.Service
DO_NOT_CACHE
 
Method Summary
 String createUri(UserInstance userInstance, String downloadId)
          Creates a URI from which to download the file.
 String getId()
          Returns the service id.
static DownloadService getInstance()
          Returns an instance for public use.
 int getVersion()
          Returns the service version.
static void install()
          Installs the service in the registry.
 void service(Connection conn)
          Handles a service request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

install

public static void install()
Installs the service in the registry.


createUri

public String createUri(UserInstance userInstance,
                        String downloadId)
Creates a URI from which to download the file.

Parameters:
userInstance - the user instance of the user downloading.
downloadId - the id of the download command.
Returns:
the download URI.

getId

public String getId()
Returns the service id.

Specified by:
getId in interface Service

getVersion

public int getVersion()
Returns the service version.

Specified by:
getVersion in interface Service

service

public void service(Connection conn)
             throws IOException
Handles a service request.

Specified by:
service in interface Service
Parameters:
conn - the connection.
Throws:
IOException

getInstance

public static DownloadService getInstance()
Returns an instance for public use.

Returns:
an instance for public use.

EchoPoint API - 3.0.0b5
App Webcontainer