public class FailedEvent extends FinishedEvent
source
Constructor and Description |
---|
FailedEvent(Upload source,
String filename,
String MIMEType,
long length)
Create an instance of the event.
|
FailedEvent(Upload source,
String filename,
String mimeType,
long length,
Exception reason)
Create an instance of the event.
|
Modifier and Type | Method and Description |
---|---|
long |
getContentLength()
Get the number of uploaded bytes.
|
Exception |
getReason()
Get the exception that caused the failure.
|
getFileName, getMIMEType, getUpload
getSource, isFromClient, unregisterListener
toString
public FailedEvent(Upload source, String filename, String mimeType, long length, Exception reason)
source
- the source of the filefilename
- the received file namemimeType
- the MIME type of the received filelength
- the number of uploaded bytesreason
- exception that failed the uploadpublic Exception getReason()
public long getContentLength()
getContentLength
in class FinishedEvent
Copyright © 2020. All rights reserved.