Package com.vaadin.flow.server.streams
Class InMemoryUploadHandler
java.lang.Object
com.vaadin.flow.server.streams.TransferProgressAwareHandler<UploadEvent,InMemoryUploadHandler>
com.vaadin.flow.server.streams.AbstractUploadHandler<InMemoryUploadHandler>
com.vaadin.flow.server.streams.InMemoryUploadHandler
- All Implemented Interfaces:
ElementRequestHandler,UploadHandler,Serializable
Upload handler for storing the upload in-memory. Data is returned as a
byte[] to the given successHandler.- Since:
- 24.8
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.flow.server.streams.UploadHandler
UploadHandler.MixedUploadResponse, UploadHandler.RejectedFilesResponse -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleUploadRequest(UploadEvent event) Method that is called when the client wants to upload data to the url stored for this specific handler registration.Methods inherited from class com.vaadin.flow.server.streams.AbstractUploadHandler
applyHeaderValidators, getTransferContext, hasValidators, runCompleteValidators, runMetadataValidators, validateComplete, validateHeader, validateMetadata, withValidatorMethods inherited from class com.vaadin.flow.server.streams.TransferProgressAwareHandler
addTransferProgressListener, getListeners, notifyError, onProgress, onProgress, onProgress, onProgress, setTransferUI, uiAccess, whenComplete, whenComplete, whenStart, whenStartMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.server.streams.ElementRequestHandler
getDisabledUpdateMode, getUrlPostfix, isAllowInertMethods inherited from interface com.vaadin.flow.server.streams.UploadHandler
getFileCountMax, getFileSizeMax, getRequestSizeMax, handleRequest, responseHandled
-
Constructor Details
-
InMemoryUploadHandler
-
-
Method Details
-
handleUploadRequest
Description copied from interface:UploadHandlerMethod that is called when the client wants to upload data to the url stored for this specific handler registration.After upload of all files is done the method
UploadHandler.responseHandled(UploadResult)will be called.- Parameters:
event- upload event containing the necessary data for getting the request- Throws:
IOException- if an error occurs during upload
-