Module SimpleHttpServer
Enum Class FileOptions.FileLoadingOption
java.lang.Object
java.lang.Enum<FileOptions.FileLoadingOption>
dev.katsute.simplehttpserver.handler.file.FileOptions.FileLoadingOption
- All Implemented Interfaces:
Serializable
,Comparable<FileOptions.FileLoadingOption>
,Constable
- Enclosing class:
FileOptions
How to load files added to the file handler.
- Since:
- 5.0.0
- Version:
- 5.0.0
- Author:
- Katsute
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionFile bytes will be read when requested, and cached forFileOptions.cache
milliseconds.File bytes will be read when requested.File bytes will be read when file is added and any time it is modified.File bytes will be read when file is added. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static FileOptions.FileLoadingOption[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
PRELOAD
File bytes will be read when file is added.- Since:
- 5.0.0
-
MODIFY
File bytes will be read when file is added and any time it is modified.- Since:
- 5.0.0
-
CACHE
File bytes will be read when requested, and cached forFileOptions.cache
milliseconds.- Since:
- 5.0.0
- See Also:
-
LIVE
File bytes will be read when requested.- Since:
- 5.0.0
-
-
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
-