Package com.ubs.backend.classes.enums
Enum Class FileUploadStatus
- All Implemented Interfaces:
Serializable,Comparable<FileUploadStatus>,Constable
Enum to handle the status of a File upload
- Since:
- 17.07.2021
- Author:
- Marc Andri Fuchs
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateFileUploadStatus(int httpCode, String response)Default Constructor -
Method Summary
Modifier and TypeMethodDescriptionintstatic FileUploadStatusReturns the enum constant of this class with the specified name.static FileUploadStatus[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
-
MAX_UPLOAD_SIZE
-
ILLEGAL_FILE_TYPE
-
DUPLICATE_FILE
-
NO_FILE_UPLOADED
-
-
Field Details
-
httpCode
private final int httpCodeThe HTTPCode for this Status- Since:
- 17.07.2021
-
response
The Response which will be sent- Since:
- 17.07.2021
-
-
Constructor Details
-
FileUploadStatus
Default Constructor- Parameters:
httpCode- The HTTPCode for this Statusresponse- The Response which will be sent- Since:
- 17.07.2021
-
-
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
-
getHttpCode
public int getHttpCode()- Returns:
- The HTTPCode for this Status
- Since:
- 17.07.2021
-
getResponse
- Returns:
- The Response which will be sent
- Since:
- 17.07.2021
-