A B C D E F G H I J L M N P S T U V 

A

asBoolean() - Method in class mobi.mtld.da.Property
Get the value of the property as a boolean.
asInteger() - Method in class mobi.mtld.da.Property
Get the value of the property as an int.
asSet() - Method in class mobi.mtld.da.Property
Gets a set of possible values for this property.
asString() - Method in class mobi.mtld.da.Property
Get the value of the property as a String.

B

BAD_DATA - Static variable in exception mobi.mtld.da.exception.JsonException
The data stored in the JSON cannot be used to build a valid DeviceAtlas data tree.
BOOLEAN - Static variable in class mobi.mtld.da.DataType
Type boolean
BYTE - Static variable in class mobi.mtld.da.DataType
Type byte

C

CarrierApi - Class in mobi.mtld.da.carrier
The main class for the Carrier Detection API.
CarrierApi() - Constructor for class mobi.mtld.da.carrier.CarrierApi
 
CarrierApiWeb - Class in mobi.mtld.da.carrier
A small extension to the core CarrierApi to permit passing of a HttpServletRequest object.
CarrierApiWeb() - Constructor for class mobi.mtld.da.carrier.CarrierApiWeb
 
ClientPropertiesException - Exception in mobi.mtld.da.exception
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.
ClientPropertiesException(String) - Constructor for exception mobi.mtld.da.exception.ClientPropertiesException
 
ClientPropertiesException(String, Throwable) - Constructor for exception mobi.mtld.da.exception.ClientPropertiesException
 
contains(String, T) - Method in class mobi.mtld.da.Properties
Check if a property has a specific value.

D

DataFileException - Exception in mobi.mtld.da.exception
The DataFileException is thrown if there is a problem loading the data file.
DataFileException(String) - Constructor for exception mobi.mtld.da.exception.DataFileException
 
DataFileException(String, Exception) - Constructor for exception mobi.mtld.da.exception.DataFileException
 
DataReadException - Exception in mobi.mtld.da.exception
The DataReadException is thrown if there is a problem loading the data from stream.
DataReadException(String) - Constructor for exception mobi.mtld.da.exception.DataReadException
 
DataReadException(String, Exception) - Constructor for exception mobi.mtld.da.exception.DataReadException
 
DataType - Class in mobi.mtld.da
The data types for various properties.
DataType() - Constructor for class mobi.mtld.da.DataType
 
DOUBLE - Static variable in class mobi.mtld.da.DataType
Type double

E

equals(Object) - Method in class mobi.mtld.da.Property
Check if another object is equal to this object.
equals(Object) - Method in class mobi.mtld.da.PropertyName
 

F

FILE_NOT_FOUND_ERROR - Static variable in exception mobi.mtld.da.exception.JsonException
The path to the JSON file that was given cannot be resolved.
FLOAT - Static variable in class mobi.mtld.da.DataType
Type float

G

getCause() - Method in exception mobi.mtld.da.exception.ClientPropertiesException
 
getCause() - Method in exception mobi.mtld.da.exception.IncorrectPropertyTypeException
 
getCause() - Method in exception mobi.mtld.da.exception.InvalidPropertyException
 
getCause() - Method in exception mobi.mtld.da.exception.JsonException
 
getCause() - Method in exception mobi.mtld.da.exception.UnknownPropertyException
 
getCode() - Method in exception mobi.mtld.da.exception.JsonException
 
getDataFileCopyright() - Method in class mobi.mtld.da.carrier.CarrierApi
Returns the data file copyright text.
getDataFileCreationDate() - Method in class mobi.mtld.da.carrier.CarrierApi
Returns the data file creation date in ISO8601 format.
getDataFileVersion() - Method in class mobi.mtld.da.carrier.CarrierApi
Returns the version of the data file.
getDataType() - Method in class mobi.mtld.da.Property
Get the data type name for values associated with this Property
getDataType() - Method in class mobi.mtld.da.PropertyName
Get the data type name for values associated with this Property name.
getDataTypeId() - Method in class mobi.mtld.da.Property
Get the data type ID for values associated with this Property
getDataTypeId() - Method in class mobi.mtld.da.PropertyName
Get the data type ID for values associated with this Property name.
getIp(Map) - Method in class mobi.mtld.da.carrier.CarrierApi
Get the most suitable IP address from the given keyVals set of HTTP headers.
getName(byte) - Static method in class mobi.mtld.da.DataType
Get the name of a given data type.
getName() - Method in class mobi.mtld.da.PropertyName
Get the name of this PropertyName
getProperties(String) - Method in class mobi.mtld.da.carrier.CarrierApi
Get the Carrier properties for a given IP address.
getProperties(Map) - Method in class mobi.mtld.da.carrier.CarrierApi
Get the Carrier properties for a given Map of HTTP Headers.
getProperties(HttpServletRequest) - Method in class mobi.mtld.da.carrier.CarrierApiWeb
Get the Carrier properties for the given HttpServletRequest object.
getProperty(String, String) - Method in class mobi.mtld.da.carrier.CarrierApi
Try and get a specific property for a given IP address.
getProperty(Map, String) - Method in class mobi.mtld.da.carrier.CarrierApi
Try and get a specific property for a given Map of HTTP Headers.
getProperty(HttpServletRequest, String) - Method in class mobi.mtld.da.carrier.CarrierApiWeb
Gets a specific Property for from the IP found in the HttpServletRequest object.
getPropertyNames() - Method in class mobi.mtld.da.carrier.CarrierApi
A set of all the possible property names.

H

hashCode() - Method in class mobi.mtld.da.Property
 
hashCode() - Method in class mobi.mtld.da.PropertyName
 
HEADERS_TO_CHECK - Static variable in class mobi.mtld.da.carrier.CarrierApi
A list of HTTP headers to choose the original client IP address from.

I

IncorrectPropertyTypeException - Exception in mobi.mtld.da.exception
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.
IncorrectPropertyTypeException(String) - Constructor for exception mobi.mtld.da.exception.IncorrectPropertyTypeException
 
IncorrectPropertyTypeException(Throwable) - Constructor for exception mobi.mtld.da.exception.IncorrectPropertyTypeException
 
INTEGER - Static variable in class mobi.mtld.da.DataType
Type int
InvalidPropertyException - Exception in mobi.mtld.da.exception
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.
InvalidPropertyException(String) - Constructor for exception mobi.mtld.da.exception.InvalidPropertyException
 
InvalidPropertyException(Throwable) - Constructor for exception mobi.mtld.da.exception.InvalidPropertyException
 
InvalidPropertyNameException - Exception in mobi.mtld.da.exception
The InvalidPropertyNameException is thrown when an attempt is made to get a property using a property name that does not exist.
InvalidPropertyNameException(String) - Constructor for exception mobi.mtld.da.exception.InvalidPropertyNameException
 
isPublicIp(String) - Static method in class mobi.mtld.da.carrier.CarrierApi
An IP address is considered public if it is not in any of the following ranges:

J

JSON_VERSION - Static variable in exception mobi.mtld.da.exception.JsonException
The JSON data you are using is too old for this API.
JsonException - Exception in mobi.mtld.da.exception
The JsonException is thrown by the Json class or the Api class when there is an error parsing the Json.
JsonException(int, String) - Constructor for exception mobi.mtld.da.exception.JsonException
 

L

loadDataFromClassPath(String) - Method in class mobi.mtld.da.carrier.CarrierApi
Load the data file from the class path.
loadDataFromFile(String) - Method in class mobi.mtld.da.carrier.CarrierApi
Load the data file from the provided path.
loadDataFromStream(InputStream) - Method in class mobi.mtld.da.carrier.CarrierApi
Load the data from input stream.
LONG - Static variable in class mobi.mtld.da.DataType
Type long int

M

MissingDataException - Exception in mobi.mtld.da.exception
The MissingDataException is thrown if a data file was not loaded before a call to methods like getProperties(String ip) or getPropertyNames();
MissingDataException(String) - Constructor for exception mobi.mtld.da.exception.MissingDataException
 
MissingDataException(String, Exception) - Constructor for exception mobi.mtld.da.exception.MissingDataException
 
mobi.mtld.da - package mobi.mtld.da
Common classes for the various DeviceAtlas APIs.
mobi.mtld.da.carrier - package mobi.mtld.da.carrier
The main package for the Carrier API.
mobi.mtld.da.exception - package mobi.mtld.da.exception
Common exceptions for DeviceAtlas APIs.

N

NO_CLIENT_PROPERTIES_SECTION - Static variable in exception mobi.mtld.da.exception.JsonException
The JSON file does not contain the Client Properties Section.

P

Properties - Class in mobi.mtld.da
Map String property names to Property objects.
Properties() - Constructor for class mobi.mtld.da.Properties
 
Properties(int, float) - Constructor for class mobi.mtld.da.Properties
 
Property - Class in mobi.mtld.da
Contains a property value.
Property(Object, byte) - Constructor for class mobi.mtld.da.Property
Create a new Property with a value and data type.
Property(Object, byte, boolean) - Constructor for class mobi.mtld.da.Property
Create a new Property with a value and data type.
PropertyName - Class in mobi.mtld.da
Contains a property name and the expected data type of values associated with this name.
PropertyName(String, byte) - Constructor for class mobi.mtld.da.PropertyName
Create a new PropertyName with string name and expected data type of values.

S

SHORT - Static variable in class mobi.mtld.da.DataType
Type short int
STRING - Static variable in class mobi.mtld.da.DataType
Type string

T

toString() - Method in class mobi.mtld.da.Property
Get the value of the property as a String.
toString() - Method in class mobi.mtld.da.PropertyName
Get the property name and the data type as "property-name (property-data-type)"

U

UNKNOWN - Static variable in class mobi.mtld.da.DataType
Unknown type
UnknownPropertyException - Exception in mobi.mtld.da.exception
The UnknownPropertyException is thrown by the Api class when there is an attemp to fetch a property unknown to the tree.
UnknownPropertyException(String) - Constructor for exception mobi.mtld.da.exception.UnknownPropertyException
 
UnknownPropertyException(Throwable) - Constructor for exception mobi.mtld.da.exception.UnknownPropertyException
 

V

value() - Method in class mobi.mtld.da.Property
Get the value Object.
A B C D E F G H I J L M N P S T U V