Enum ClientConstants

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<ClientConstants>

    public enum ClientConstants
    extends java.lang.Enum<ClientConstants>
    • Enum Constant Detail

      • CLIENT_COOKIE_NAME

        public static final ClientConstants CLIENT_COOKIE_NAME
        Name of the cookie created by the DeviceAtlas client side component
      • KEY_USERAGENT

        public static final ClientConstants KEY_USERAGENT
        The name of the key used to lookup the User-Agent in the results object
      • KEY_SOURCE

        public static final ClientConstants KEY_SOURCE
        The name of the key used to lookup the source of data (none, cache or cloud) in the results object
      • KEY_PROPERTIES

        public static final ClientConstants KEY_PROPERTIES
        The name of the key used to lookup the device properties in the results object
      • SOURCE_CACHE

        public static final ClientConstants SOURCE_CACHE
        In the result Map, KEY_SOURCE may be set to this. Shows that the data source of device properties set to KEY_PROPERTIES in the result Map was cache.
      • SOURCE_CLOUD

        public static final ClientConstants SOURCE_CLOUD
        In the result Map, KEY_SOURCE may be set to this. Shows that the device properties set to KEY_PROPERTIES where queried from DA cloud service.
      • SOURCE_NONE

        public static final ClientConstants SOURCE_NONE
        In the result Map, KEY_SOURCE may be set to this. Indicates that there was a problem getting device data.
      • CACHE_NAME

        public static final ClientConstants CACHE_NAME
        ehcache settings - cache key for cached device data
      • CACHE_NAME_SERVERS_AUTO

        public static final ClientConstants CACHE_NAME_SERVERS_AUTO
        ehcache settings - cache key for cached endPoints ranked list
      • CACHE_NAME_SERVERS_MANUAL

        public static final ClientConstants CACHE_NAME_SERVERS_MANUAL
        ehcache settings - cache key for cached endPoints manual fail-over list
      • OPERA_HEADER_IDENTIFIER

        public static final ClientConstants OPERA_HEADER_IDENTIFIER
      • CLOUD_SERVICE_STATUS

        public static final ClientConstants CLOUD_SERVICE_STATUS
        fields for connection service return
      • CLOUD_SERVICE_MESSAGE

        public static final ClientConstants CLOUD_SERVICE_MESSAGE
      • CLOUD_SERVICE_RESULT

        public static final ClientConstants CLOUD_SERVICE_RESULT
    • Method Detail

      • values

        public static ClientConstants[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ClientConstants c : ClientConstants.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ClientConstants valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<ClientConstants>