EchoPoint API - 3.0.0b5
App Webcontainer

echopoint.tucana.event
Class UploadEvent

java.lang.Object
  extended by java.util.EventObject
      extended by echopoint.tucana.event.UploadEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
InvalidContentTypeEvent, UploadCancelEvent, UploadFailEvent, UploadFinishEvent, UploadProgressEvent, UploadStartEvent

public abstract class UploadEvent
extends EventObject

A base class that represents an upload event.

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

Version:
$Id: UploadEvent.java 90 2008-11-11 01:41:05Z sptrakesh $
Author:
jvolkman (Echo2), Rakesh 2008-11-2
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
UploadEvent(FileUploadSelector source, String index, String fileName, String contentType)
          Creates a new UploadEvent.
 
Method Summary
 String getContentType()
          Return the content type of the uploaded file.
 String getFileName()
          The name of the file that was uploaded.
 String getIndex()
          Returns the index of the file.
 
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

UploadEvent

public UploadEvent(FileUploadSelector source,
                   String index,
                   String fileName,
                   String contentType)
Creates a new UploadEvent.

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
Method Detail

getIndex

public String getIndex()
Returns the index of the file.

Returns:
the index of the file.

getContentType

public String getContentType()
Return the content type of the uploaded file.

Returns:
The content type property of the uploaded file.

getFileName

public String getFileName()
The name of the file that was uploaded.

Returns:
The file name.

EchoPoint API - 3.0.0b5
App Webcontainer