echopoint.tucana
Class BaseUploadService
java.lang.Object
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
|
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 |
BaseUploadService
public BaseUploadService()
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.