Package com.iizix.urn
Enum Class URNLocation
- All Implemented Interfaces:
Serializable
,Comparable<URNLocation>
,Constable
The URN NID location: local file, database or external URL.
- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant Summary
Enum ConstantDescriptionDatabase, stored in a database table indirectly defined by depending theWSFileType
implementation.External URL, typically using the "file:" protocol.Local file, stored in one of the directories depending on theWSFileType
.Method Summary
Modifier and TypeMethodDescriptionstatic URNLocation
Returns the enum constant of this class with the specified name.static URNLocation[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
LOCAL_FILE
Local file, stored in one of the directories depending on theWSFileType
.DATABASE
Database, stored in a database table indirectly defined by depending theWSFileType
implementation.EXTERNAL_URL
External URL, typically using the "file:" protocol. The URL must be accessible by all servers in a cluster, using (very fast) high-speed data transfer as this resource is NOT cached on each server. The reason for not caching on the server is that this type of resource can be used for large resources such as videos, etc, exceeding the database file storage size of 32 MB (33_554_432 bytes),
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