public class StartedEvent extends ComponentEvent<Upload>
source| Constructor and Description |
|---|
StartedEvent(Upload source,
String fileName,
String mimeType,
long contentLength)
Create an instance of the event.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getContentLength()
Get the length of the file.
|
String |
getFileName()
Get the file name.
|
String |
getMIMEType()
Get the MIME type of the file.
|
Upload |
getUpload()
Upload where the event occurred.
|
getSource, isFromClient, unregisterListenertoStringpublic StartedEvent(Upload source, String fileName, String mimeType, long contentLength)
source - the source of the filefileName - the received file namemimeType - the MIME type of the received filecontentLength - the length of the received filepublic Upload getUpload()
public String getFileName()
public String getMIMEType()
public long getContentLength()
Copyright © 2025. All rights reserved.