public class FailedEvent extends FinishedEvent
source| Constructor and Description |
|---|
FailedEvent(Upload source,
String filename,
String MIMEType,
long length) |
FailedEvent(Upload source,
String filename,
String MIMEType,
long length,
Exception reason) |
| Modifier and Type | Method and Description |
|---|---|
long |
getContentLength()
Gets the number of uploaded bytes.
|
Exception |
getReason()
Gets the exception that caused the failure.
|
getFileName, getMIMEType, getUploadgetSource, isFromClient, unregisterListenertoStringpublic FailedEvent(Upload source, String filename, String MIMEType, long length, Exception reason)
source - the source of the file.filename - the received file name.MIMEType - the MIME type of the received file.length - the number of uploaded bytesreason - exception that failed the uploadpublic Exception getReason()
public long getContentLength()
getContentLength in class FinishedEventCopyright © 2018. All rights reserved.