Class UploadHelper

java.lang.Object
com.vaadin.flow.component.upload.UploadHelper
All Implemented Interfaces:
Serializable

public class UploadHelper extends Object implements Serializable
Utility methods for Upload and UploadManager components.

Intended only for internal use and can be removed or changed in the future.

Since:
25.1
See Also:
  • Constructor Details

    • UploadHelper

      public UploadHelper()
  • Method Details

    • hasUploadHandler

      public static boolean hasUploadHandler(UploadManager uploadManager)
      Checks whether the given UploadManager has an explicitly configured UploadHandler.
      Parameters:
      uploadManager - the upload manager to check, not null
      Returns:
      true if the upload manager has an explicitly configured upload handler, false otherwise
    • hasUploadHandler

      public static boolean hasUploadHandler(Upload upload)
      Checks whether the given Upload has an explicitly configured UploadHandler.
      Parameters:
      upload - the upload component to check, not null
      Returns:
      true if the upload has an explicitly configured upload handler, false otherwise