Package com.vaadin.flow.component.upload
Enum Class UploadTester.UploadStatus
java.lang.Object
java.lang.Enum<UploadTester.UploadStatus>
com.vaadin.flow.component.upload.UploadTester.UploadStatus
- All Implemented Interfaces:
Serializable,Comparable<UploadTester.UploadStatus>,Constable
- Enclosing class:
UploadTester<T extends Upload>
What became of a file handed to the tester for uploading.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe file was accepted but its transfer failed.The file was accepted but its transfer never concluded, which only happens when the upload itself threw, for instance because no upload handler is configured.The file never reached the upload handler or receiver, because either the client-side constraints of the component or Flow's server-side accepted type validation refused it.The file was consumed by the upload handler or receiver. -
Method Summary
Modifier and TypeMethodDescriptionstatic UploadTester.UploadStatusReturns the enum constant of this class with the specified name.static UploadTester.UploadStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UPLOADED
The file was consumed by the upload handler or receiver. -
REJECTED
The file never reached the upload handler or receiver, because either the client-side constraints of the component or Flow's server-side accepted type validation refused it. AFileRejectedEventis fired for the former. -
FAILED
The file was accepted but its transfer failed. -
PENDING
The file was accepted but its transfer never concluded, which only happens when the upload itself threw, for instance because no upload handler is configured.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-