Class FileUpload
- All Implemented Interfaces:
MutinyDelegate
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Tim Fox
- See Also:
-
FileUpload
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFileUpload(io.vertx.ext.web.FileUpload delegate) Create a new instance ofFileUploaddelegating to the given (non-null) instance ofFileUpload.FileUpload(Object delegate) -
Method Summary
Modifier and TypeMethodDescriptionbooleancancel()Try to cancel the file upload.charSet()io.smallrye.mutiny.Uni<Void>delete()Delete the uploaded file on the disk.voidDelete the uploaded file on the disk.Delete the uploaded file on the disk.booleanfileName()io.vertx.ext.web.FileUploadGet the delegate instance.inthashCode()name()static FileUploadnewInstance(io.vertx.ext.web.FileUpload delegate) Creates a new instance of theFileUpload.longsize()toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
FileUpload
public FileUpload(io.vertx.ext.web.FileUpload delegate) Create a new instance ofFileUploaddelegating to the given (non-null) instance ofFileUpload. -
FileUpload
-
-
Method Details
-
getDelegate
public io.vertx.ext.web.FileUpload getDelegate()Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
delete
Delete the uploaded file on the disk.Unlike the bare Vert.x variant, this method returns a
Uni. The uni emits the result of the operation as item. If the operation fails, the uni emits the failure.Don't forget to subscribe on it to trigger the operation.
- Returns:
- A
Unirepresenting the asynchronous result of this operation. - See Also:
-
FileUpload.delete()
-
deleteAndAwait
public void deleteAndAwait()Delete the uploaded file on the disk.Unlike the bare Vert.x variant, this method returns a
Void. This method awaits indefinitely for the completion of the underlying asynchronous operation. If the operation completes successfully, the result is returned, otherwise the failure is thrown (potentially wrapped in aRuntimeException).- See Also:
-
FileUpload.delete()
-
deleteAndForget
Delete the uploaded file on the disk.Unlike the bare Vert.x variant, this method ignores the
Voidresult or any failure.- Returns:
- The current instance to chain operations if needed.
- See Also:
-
FileUpload.delete()
-
name
- Returns:
- the name of the upload as provided in the form submission
-
uploadedFileName
- Returns:
- the actual temporary file name on the server where the file was uploaded to.
-
fileName
- Returns:
- the file name of the upload as provided in the form submission
-
size
public long size()- Returns:
- the size of the upload, in bytes
-
contentType
- Returns:
- the content type (MIME type) of the upload
-
contentTransferEncoding
- Returns:
- the content transfer encoding of the upload - this describes how the upload was encoded in the form submission.
-
charSet
- Returns:
- the charset of the upload
-
cancel
public boolean cancel()Try to cancel the file upload.- Returns:
truewhen the upload was cancelled,falsewhen the upload is finished and the file is available
-
newInstance
Creates a new instance of theFileUpload. -
hashCode
public int hashCode() -
equals
-
toString
-