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 Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
protected void
abstract long
The number of bytes that have been received so far.abstract long
The total number of bytes which are expected in total, as transmitted by the uploading client.abstract Exception
If 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.EventObject
getSource, toString
-
Constructor Details
-
FileUploadEvent
-
-
Method Details
-
getFileDetails
Array with details about successfully uploaded files.- Returns:
- an array with details about successfully uploaded files.
-
getContentLength
public 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
-
getBytesRead
public abstract long getBytesRead()The number of bytes that have been received so far.- Returns:
- the number of bytes received
-
getException
If the upload has failed, this method will return the exception that has occurred.- Returns:
- the exception if the upload has failed,
null
otherwise
-
dispatchProgress
protected void dispatchProgress() -
dispatchFinished
protected void dispatchFinished() -
dispatchFailed
protected void dispatchFailed()
-