Enum Class UIUploadEvent.Type
- All Implemented Interfaces:
Serializable, Comparable<UIUploadEvent.Type>, Constable
- Enclosing class:
UIUploadEvent
The types of the upload event.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA file was cancelled:UIUploadEvent.getReason().A file has been completely received and verified:UIUploadEvent.getUploadedFile(), to take or to delete.A file failed its verification or its transfer:UIUploadEvent.getReason().A file is paused, by the App or by the client:UIUploadEvent.getReason().Chunks of a file arrive, at most once per second per file:UIUploadEvent.getPlainBytes()ofUIUploadEvent.getPlainTotal().A paused file may receive chunks again.The first chunk of a file has been accepted:UIUploadEvent.getFile().Every file of the reservation is final.The client asks to upload files:UIUploadEvent.getRequest()holds what it declares, andUIUploadEvent.deny(String)refuses the request.The request has been reserved, accepted or refused:UIUploadEvent.getReservation().Method Summary
Modifier and TypeMethodDescriptionstatic UIUploadEvent.TypeReturns the enum constant of this class with the specified name.static UIUploadEvent.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
REQUEST
The client asks to upload files:UIUploadEvent.getRequest()holds what it declares, andUIUploadEvent.deny(String)refuses the request.RESERVED
The request has been reserved, accepted or refused:UIUploadEvent.getReservation().FILE_STARTED
The first chunk of a file has been accepted:UIUploadEvent.getFile().FILE_PROGRESS
Chunks of a file arrive, at most once per second per file:UIUploadEvent.getPlainBytes()ofUIUploadEvent.getPlainTotal().FILE_PAUSED
A file is paused, by the App or by the client:UIUploadEvent.getReason().FILE_RESUMED
A paused file may receive chunks again.FILE_COMPLETED
A file has been completely received and verified:UIUploadEvent.getUploadedFile(), to take or to delete.FILE_FAILED
A file failed its verification or its transfer:UIUploadEvent.getReason().FILE_CANCELLED
A file was cancelled:UIUploadEvent.getReason().FINISHED
Every file of the reservation is final.
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