Fundamentals / Automatic Discovery of User Agent (adua.xrd) |
The Output Map chosen for an application is based on the detected browser type, as specified in the adua.xrd file.
The Genero Application Server first identifies the value of the RULE element for the application. The RULE element is defined in (or inherited by) the application configuration.
For example, if the value of the RULE element is UseGWC, then drop into that element. Once inside that element, the type of browser being used to display the application determines which Output Map is used to render the application.
<?xml version="1.0" encoding="UTF-8"?> <!-- FOURJS_START_COPYRIGHT(D,2000) Property of Four Js* (c) Copyright Four Js 2000, 2019. All Rights Reserved. * Trademark of Four Js Development Tools Europe Ltd in the United States and elsewhere This file can be modified by licensees according to the product manual. FOURJS_END_COPYRIGHT --> <RULE_LIST xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.4js.com/ns/gas/2.50/xrd.xsd"> <!-- Output Driver Determination (XRD - XML Rule Definition) --> <RULE Id="UseGDC"> <TABLE Id="1" Key="User-Agent"> <ROW> <IN>MSIE</IN> <ACTION Type="RESULT">DUA_GDC</ACTION> </ROW> <ROW> <IN>GDC</IN> <ACTION Type="RESULT">DUA_GDC</ACTION> </ROW> </TABLE> </RULE> <RULE Id="UseGWC"> <TABLE Id="1" Key="User-Agent"> <ROW> <IN>GDC</IN> <ACTION Type="RESULT">DUA_GDC</ACTION> </ROW> <ROW> <ACTION Type="RESULT">DUA_HTML5</ACTION> </ROW> </TABLE> </RULE> </RULE_LIST>
Based on this sample adua.xrd file:
If the RULE is UseGDC:
For MSIE or GDC, the DUA_GDC Output Map is chosen.
If the RULE is UseGWC (for most desktop browsers):
For the GDC, the DUA_GDC Output Map is chosen.