Package com.iizix.urn

Enum Class URNLocation

All Implemented Interfaces:
Serializable, Comparable<URNLocation>, Constable

public enum URNLocation extends Enum<URNLocation>
The URN NID location: local file, database or external URL.
Author:
Christopher Mindus
  • Enum Constant Details

    • LOCAL_FILE

      public static final URNLocation LOCAL_FILE
      Local file, stored in one of the directories depending on the WSFileType.
    • DATABASE

      public static final URNLocation DATABASE
      Database, stored in a database table indirectly defined by depending the WSFileType implementation.
    • EXTERNAL_URL

      public static final URNLocation 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

      public static URNLocation[] 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

      public static URNLocation valueOf(String name)
      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 name
      NullPointerException - if the argument is null