|
The DeviceAtlas DeviceApi documentation
2.1
|
| Used to load the recognition tree and perform lookups of all properties, or get individual properties. Typical usage is as follows: | |
| The data types for various properties. Each Property object returned has a getDataType() method. | |
| Maps dtring property names to Property objects. An instance of this class is returned for every GetProperties() lookup that matches an IP. | |
| The ClientPropertiesException is thrown by the API when there is a problem parsing the properties from the client or when the JSON file does not support client side properties. | |
| The DataFileException is thrown if there is a problem loading the data file. | |
| The DataReadException is thrown if there is a problem loading the data from stream. | |
| The InvalidPropertyException is thrown by the Api class when there is an attemp to fetch a property that is unknown for the supplied user agent. | |
| The InvalidPropertyException is thrown by the Api class when there is an attemp to fetch a property by type and the property is stored under a different type in the tree. | |
| The InvalidPropertyException is thrown by the Api class when there is an attemp to fetch a property that is unknown for the supplied user agent. | |
| The InvalidPropertyNameException is thrown when an attempt is made to get a property using a property name that does not exist. This typically happens if the property name is misspelled. A full list of possible property names can be found using the GetPropertyNames() method of CarrierApi. | |
| The JsonException is thrown by the Json class or the Api class when there is an error parsing the Json. | |
| The MissingDataException is thrown if a data file was not loaded before a call to methods like GetProperties(String ip) or GetPropertyNames(); | |
| The MissingDataException is thrown if a data file was not loaded before a call to methods like GetProperties(string ip) or GetPropertyNames(); | |
| The UnknownPropertyException is thrown by the Api class when there is an attemp to fetch a property unknown to the tree. | |
| DeviceApi Configurations. To change the default configs of the DeviceAtlas DeviceApi create an instance of this class, set your preferred configs and pass the instance to the constructor of a DeviceApi or DeviceApiWeb. Note that you may change the configs even after the Config instance has been passed to the DeviceApi. | |
| Contains a property value. The value can be fetched as a generic Object or one of the convenience asXXXX methods can be used to get the value in a specific type. | |
| Contains a property name and the expected data type of values associated with this name. This is returned in a Set when the method getPropertyNames() is called. |
1.8.6