Uses of Class
com.vaadin.flow.server.streams.UploadEvent
Packages that use UploadEvent
-
Uses of UploadEvent in com.vaadin.flow.server.streams
Methods in com.vaadin.flow.server.streams with parameters of type UploadEventModifier and TypeMethodDescriptionprotected InputStreamAbstractUploadHandler.applyHeaderValidators(UploadEvent event, InputStream in) Runs the header phase of the registered validators: reads the leading bytes (up to the largest requestedUploadValidator.headerSize()), gives each header validator a read-only view of its firstheaderSize()bytes, and returns a stream that replays those bytes followed by the rest ofin.protected TransferContextAbstractFileUploadHandler.getTransferContext(UploadEvent transferEvent) protected TransferContextAbstractUploadHandler.getTransferContext(UploadEvent event) voidAbstractFileUploadHandler.handleUploadRequest(UploadEvent event) voidInMemoryUploadHandler.handleUploadRequest(UploadEvent event) voidUploadHandler.handleUploadRequest(UploadEvent event) Method that is called when the client wants to upload data to the url stored for this specific handler registration.protected voidAbstractUploadHandler.runCompleteValidators(UploadEvent event, UploadContent content) Runs the complete phase of the registered validators against the fully received content.protected voidAbstractUploadHandler.runMetadataValidators(UploadEvent event) Runs the metadata phase of the registered validators, before any data is read.voidUploadCompleteCallback.validate(UploadEvent event, UploadContent content) Validates the fully received upload, rejecting it viareject(String)if it must not be delivered.voidUploadHeaderCallback.validate(UploadEvent event, ByteBuffer header) Validates the header (leading bytes) of an upload, rejecting it viareject(String)if it must not be stored.voidUploadMetadataCallback.validate(UploadEvent event) Validates the upload metadata, rejecting it viareject(String)if it must not be stored.default voidUploadValidator.validateComplete(UploadEvent event, UploadContent content) Validates the fully received upload, before it is delivered to the success callback.default voidUploadValidator.validateHeader(UploadEvent event, ByteBuffer header) Validates the header (leading bytes) of the upload, before the rest is read.default voidUploadValidator.validateMetadata(UploadEvent event) Validates the upload metadata before any data is read.