EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.tucana.event
Interface UploadCallback

All Superinterfaces:
EventListener, Serializable
All Known Implementing Classes:
DefaultUploadCallback, UploadCallbackAdapter

public interface UploadCallback
extends EventListener, Serializable

An interface that represents a call back handler that will be notified when an upload event completes or fails.

Note: Development of this component was sponsored by TCN Broadcasting. We are grateful for their support and sponsorship.

Version:
$Id: UploadCallback.java 102 2008-11-17 20:10:05Z sptrakesh $
Author:
jvolkman (Echo2), Rakesh 2008-11-2

Method Summary
 UploadEvent getEvent()
          A convenience method to return the last event received by the callback handler.
 void uploadCancelled(UploadCancelEvent event)
          Indicates a file upload has been canceled.
 void uploadDisallowed(InvalidContentTypeEvent event)
          Indicates that a file upload was rejected by the server since the client attempted to send restricted content.
 void uploadFailed(UploadFailEvent event)
          Call back method when an upload event fails.
 void uploadProgressed(UploadProgressEvent event)
          Indicates a file upload has progressed.
 void uploadStarted(UploadStartEvent event)
          Indicates a file upload has been started.
 void uploadSucceeded(UploadFinishEvent event)
          Call back method invoked once an upload event completes.
 

Method Detail

uploadStarted

void uploadStarted(UploadStartEvent event)
Indicates a file upload has been started.

Parameters:
event - the event

uploadCancelled

void uploadCancelled(UploadCancelEvent event)
Indicates a file upload has been canceled.

Parameters:
event - the event

uploadDisallowed

void uploadDisallowed(InvalidContentTypeEvent event)
Indicates that a file upload was rejected by the server since the client attempted to send restricted content.

Parameters:
event - The event that was generated.

uploadProgressed

void uploadProgressed(UploadProgressEvent event)
Indicates a file upload has progressed.

Parameters:
event - the event

uploadSucceeded

void uploadSucceeded(UploadFinishEvent event)
Call back method invoked once an upload event completes.

Parameters:
event - The event that has completed.

uploadFailed

void uploadFailed(UploadFailEvent event)
Call back method when an upload event fails.

Parameters:
event - The event that has failed.

getEvent

UploadEvent getEvent()
A convenience method to return the last event received by the callback handler. Can be used to gain access to the input stream (provided it has not been closed).

Returns:
The upload event that was last processed by the handler.

EchoPoint API - 3.0.0b5
App Webcontainer