Package io.goobi.viewer.model.log
Enum Class LogFile
- All Implemented Interfaces:
Serializable,Comparable<LogFile>,Constable
Enum of allowed log files. The actual path is read from config_viewer.xml.
Clients only ever send the symbolic name — never a file path.
This prevents path traversal attacks structurally.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionMaps a client-supplied name to the corresponding enum constant.getName()getPath()Returns the configured absolute path for this log file.static LogFileReturns the enum constant of this class with the specified name.static LogFile[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VIEWER
-
OAI
-
ICS
-
INDEXER
-
-
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
-
getName
-
getPath
Returns the configured absolute path for this log file. Returns empty if no path is configured in config_viewer.xml. -
fromName
Maps a client-supplied name to the corresponding enum constant. Returns empty for any unknown or null name — never throws.
-