Enum ClientConstants
- java.lang.Object
-
- java.lang.Enum<ClientConstants>
-
- com.deviceatlas.cloud.deviceidentification.client.ClientConstants
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ClientConstants>
public enum ClientConstants extends java.lang.Enum<ClientConstants>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description API_VERSION
API VersionCACHE_NAME
ehcache settings - cache key for cached device dataCACHE_NAME_SERVERS_AUTO
ehcache settings - cache key for cached endPoints ranked listCACHE_NAME_SERVERS_MANUAL
ehcache settings - cache key for cached endPoints manual fail-over listCLIENT_COOKIE_NAME
Name of the cookie created by the DeviceAtlas client side componentCLOUD_DA_HEADERS
CLOUD_SERVICE_MESSAGE
CLOUD_SERVICE_RESULT
CLOUD_SERVICE_STATUS
fields for connection service returnKEY_PROPERTIES
The name of the key used to lookup the device properties in the results objectKEY_SOURCE
The name of the key used to lookup the source of data (none, cache or cloud) in the results objectKEY_USERAGENT
The name of the key used to lookup the User-Agent in the results objectOPERA_HEADER_IDENTIFIER
SOURCE_CACHE
In the result Map, KEY_SOURCE may be set to this.SOURCE_CLOUD
In the result Map, KEY_SOURCE may be set to this.SOURCE_NONE
In the result Map, KEY_SOURCE may be set to this.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString()
static ClientConstants
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ClientConstants[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
API_VERSION
public static final ClientConstants API_VERSION
API Version
-
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
-
CLOUD_DA_HEADERS
public static final ClientConstants CLOUD_DA_HEADERS
-
-
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 namejava.lang.NullPointerException
- if the argument is null
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<ClientConstants>
-
-