EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.tucana
Class BaseUploadService

java.lang.Object
  extended by echopoint.tucana.BaseUploadService
All Implemented Interfaces:
Service
Direct Known Subclasses:
UploadProgressService, UploadReceiverService

public abstract class BaseUploadService
extends Object
implements Service

Base service for file uploads.

Version:
$Id: BaseUploadService.java 90 2008-11-11 01:41:05Z sptrakesh $
Author:
Echo File Transfer Library

Field Summary
 
Fields inherited from interface nextapp.echo.webcontainer.Service
DO_NOT_CACHE
 
Constructor Summary
BaseUploadService()
           
 
Method Summary
 void service(Connection conn)
          Validates if the request contains a valid FileUploadSelector render id and index.
abstract  void service(Connection conn, FileUploadSelector uploadSelect, String uploadIndex)
          Performs the actual service of the request.
protected static void serviceBadRequest(Connection conn, String message)
          Serves a bad request message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nextapp.echo.webcontainer.Service
getId, getVersion
 

Constructor Detail

BaseUploadService

public BaseUploadService()
Method Detail

service

public void service(Connection conn)
             throws IOException
Validates if the request contains a valid FileUploadSelector render id and index.

Specified by:
service in interface Service
Throws:
IOException
See Also:
Service.service(Connection)

service

public abstract void service(Connection conn,
                             FileUploadSelector uploadSelect,
                             String uploadIndex)
                      throws IOException
Performs the actual service of the request.

Parameters:
conn - The connection to the application.
uploadSelect - The file upload selector instance.
uploadIndex - The unique index of the current upload for the instance.
Throws:
IOException - If errors are encountered.

serviceBadRequest

protected static void serviceBadRequest(Connection conn,
                                        String message)
Serves a bad request message.

Parameters:
conn - The connection to the application.
message - The message to display for the bad request.

EchoPoint API - 3.0.0b5
App Webcontainer