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, getUploadgetSource, isFromClient, unregisterListenertoStringpublic 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 FinishedEventCopyright © 2025. All rights reserved.