EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.tucana.event
Class UploadFailEvent

java.lang.Object
  extended by java.util.EventObject
      extended by echopoint.tucana.event.UploadEvent
          extended by echopoint.tucana.event.UploadFailEvent
All Implemented Interfaces:
Serializable

public class UploadFailEvent
extends UploadEvent

An event that represents a failed file transfer.

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

Version:
$Id: UploadFailEvent.java 90 2008-11-11 01:41:05Z sptrakesh $
Author:
Echo File Transfer Library
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
UploadFailEvent(FileUploadSelector source, String index, String fileName, String contentType, Exception exception)
          Creates a new UploadEvent.
 
Method Summary
 Exception getException()
          Returns the exception that caused the file upload to fail.
 
Methods inherited from class echopoint.tucana.event.UploadEvent
getContentType, getFileName, getIndex
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UploadFailEvent

public UploadFailEvent(FileUploadSelector source,
                       String index,
                       String fileName,
                       String contentType,
                       Exception exception)
Creates a new UploadEvent. This is the designated constructor.

Parameters:
source - the source of the event
index - the index of the upload
fileName - the name of the file, may not contain path information
contentType - the content type of the uploaded file
exception - The exception that caused the failure.
Method Detail

getException

public Exception getException()
Returns the exception that caused the file upload to fail.

Returns:
the exception if available, null if unknown.

EchoPoint API - 3.0.0b5
App Webcontainer