Enum Class FileUploadStatus

java.lang.Object
java.lang.Enum<FileUploadStatus>
com.ubs.backend.classes.enums.FileUploadStatus
All Implemented Interfaces:
Serializable, Comparable<FileUploadStatus>, Constable

public enum FileUploadStatus extends Enum<FileUploadStatus>
Enum to handle the status of a File upload
Since:
17.07.2021
Author:
Marc Andri Fuchs
  • Enum Constant Details

  • Field Details

    • httpCode

      private final int httpCode
      The HTTPCode for this Status
      Since:
      17.07.2021
    • response

      private final String response
      The Response which will be sent
      Since:
      17.07.2021
  • Constructor Details

    • FileUploadStatus

      private FileUploadStatus(int httpCode, String response)
      Default Constructor
      Parameters:
      httpCode - The HTTPCode for this Status
      response - The Response which will be sent
      Since:
      17.07.2021
  • Method Details

    • values

      public static FileUploadStatus[] 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 FileUploadStatus 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
    • getHttpCode

      public int getHttpCode()
      Returns:
      The HTTPCode for this Status
      Since:
      17.07.2021
    • getResponse

      public String getResponse()
      Returns:
      The Response which will be sent
      Since:
      17.07.2021