Package com.vaadin.flow.server.streams
Class FileUploadHandler
java.lang.Object
com.vaadin.flow.server.streams.TransferProgressAwareHandler<UploadEvent,R>
com.vaadin.flow.server.streams.AbstractFileUploadHandler<FileUploadHandler>
com.vaadin.flow.server.streams.FileUploadHandler
- All Implemented Interfaces:
ElementRequestHandler,UploadHandler,Serializable
Upload handler that stores the data into a file generated by the given
FileFactory.- Since:
- 24.8
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFileUploadHandler(FileUploadCallback successCallback, FileFactory fileFactory) Constructor for file upload handler. -
Method Summary
Methods inherited from class com.vaadin.flow.server.streams.AbstractFileUploadHandler
getTransferContext, handleUploadRequestMethods inherited from class com.vaadin.flow.server.streams.TransferProgressAwareHandler
addTransferProgressListener, getListeners, notifyError, onProgress, onProgress, onProgress, onProgress, 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
-
FileUploadHandler
Constructor for file upload handler.- Parameters:
successCallback- consumer to be called when upload successfully completesfileFactory- factory for generating file to write to
-