Package org.eclipse.rap.fileupload
Class FileUploadEvent
java.lang.Object
java.util.EventObject
org.eclipse.rap.fileupload.FileUploadEvent
- All Implemented Interfaces:
- Serializable
Event object that provides information on a file upload. The source of this kind of events is
 always a file upload handler.
- See Also:
- 
Field SummaryFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected voidprotected voidprotected voidabstract longThe number of bytes that have been received so far.abstract longThe total number of bytes which are expected in total, as transmitted by the uploading client.abstract ExceptionIf the upload has failed, this method will return the exception that has occurred.abstract FileDetails[]Array with details about successfully uploaded files.Methods inherited from class java.util.EventObjectgetSource, toString
- 
Constructor Details- 
FileUploadEvent
 
- 
- 
Method Details- 
getFileDetailsArray with details about successfully uploaded files.- Returns:
- an array with details about successfully uploaded files.
 
- 
getContentLengthpublic abstract long getContentLength()The total number of bytes which are expected in total, as transmitted by the uploading client. May be unknown.- Returns:
- the content length in bytes or -1 if unknown
 
- 
getBytesReadpublic abstract long getBytesRead()The number of bytes that have been received so far.- Returns:
- the number of bytes received
 
- 
getExceptionIf the upload has failed, this method will return the exception that has occurred.- Returns:
- the exception if the upload has failed, nullotherwise
 
- 
dispatchProgressprotected void dispatchProgress()
- 
dispatchFinishedprotected void dispatchFinished()
- 
dispatchFailedprotected void dispatchFailed()
 
-