Copyright © 2014 by mTLD Top Level Domain Limited. All rights reserved.
Portions copyright © 2008 by Argo Interactive Limited.
Portions copyright © 2008 by Nokia Inc.
Portions copyright © 2008 by Telecom Italia Mobile S.p.A.
Portions copyright © 2008 by Volantis Systems Limited.
Portions copyright © 2002-2008 by Andreas Staeding.
Portions copyright © 2008 by Zandan.
dotMobi
tree key - has children
tree key - list of compiled regexes
tree key - property data
device-id property name
tree key - user-agent header names {“h”:{“sl”:}}
tree key - tree main branch
tree key - masked properties
tree key - {DATA-META-DATA}
tree key - tree revision
tree key - tree create time-stamp
tree key - tree structure version
tree key - property names [property-name,]
tree key - list of regexes [regex(String),]
tree key - stock user-agent header names {“h”:{“sl”:}}
tree key - property values [property-value,]
for MAP optimization, set to average number properties
A list of http-headers which may contain the original user-agent. if the tree does not contain KEY_UA_STOCK_HEADERS then this list will be used
Load the JSON tree into a Hash.
Get data file creation timestamp
Get data file version
Get the list of all available property names from the tree (not contains client side props)
Get properties from tree walk/ua/client-side and put them in the tree.properties
user_agent
user-agent string (from the original User-Agent header) to be
used for detecting ua-props
stock_user_agents
list of candidate user-agent strings to be used for
tree walk
client_side_properties
optional client side properties
Get properties from tree walk/ua and put them in the tree.properties
if !stock_user_agents.nil?
- iterate over stockUserAgents for each item: tree-walk and stop iteration if result has deviceId - use userAgent for detecting the ua-props
if stock_user_agents.nil?
- use userAgent for tree walk - use userAgent for detecting the ua-props
user_agent
user-agent string (from the original User-Agent header)
stock_user_agents
list of candidate user-agent strings to be used for
tree walk