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>

public static enum UploadTester.UploadStatus extends Enum<UploadTester.UploadStatus>
What became of a file handed to the tester for uploading.
  • Enum Constant Details

    • UPLOADED

      public static final UploadTester.UploadStatus UPLOADED
      The file was consumed by the upload handler or receiver.
    • REJECTED

      public static final UploadTester.UploadStatus 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. A FileRejectedEvent is fired for the former.
    • FAILED

      public static final UploadTester.UploadStatus FAILED
      The file was accepted but its transfer failed.
    • PENDING

      public static final UploadTester.UploadStatus 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

      public static UploadTester.UploadStatus[] 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

      public static UploadTester.UploadStatus valueOf(String name)
      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 name
      NullPointerException - if the argument is null