Interface IUploadContent
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultUploadContent
Interface that is used to pass content that is uploaded from the client. The
uploaded content is made available as one or more byte arrays (byte[]).
This means that the whole content of an uploaded file is kept in memory. If this is a restriction (e.g. uploading big file sizes) then use
Please use the default implementation DefaultUploadConetnt in order to extend your own implementation from.
This means that the whole content of an uploaded file is kept in memory. If this is a restriction (e.g. uploading big file sizes) then use
IUploadStreamContent
.
Please use the default implementation DefaultUploadConetnt in order to extend your own implementation from.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Called before the first file is transferred.void
Called after all files have been passed viapassClientFile(String, byte[])
.getId()
getURL()
URL that can be passed into the upload component.void
passClientFile
(String fileName, byte[] content) This method passes the uploaded file content into your implementation.
-
Method Details
-
getId
String getId() -
getURL
String getURL()URL that can be passed into the upload component. The URL is the one used by the uploade component to send the content of a file that is to be uploaded. -
beginPassing
void beginPassing()Called before the first file is transferred. -
passClientFile
This method passes the uploaded file content into your implementation. -
endPassing
void endPassing()Called after all files have been passed viapassClientFile(String, byte[])
. The upload has ended when this method is called.
-