Fundamentals / Automatic Discovery of User Agent (adua.xrd) |
When the application server needs to render an application, it relies on the application having one or more MAP components defined in its configuration. Each MAP component specifies a RENDERING engine and THEME to be used. These MAP elements are child elements of the OUTPUT element, thus the name "Output Map".
While the MAP element can be defined explicitly in the application configuration, it is more commonly defined in the inherited abstract application. To examine multiple MAP entries for Web applications, examine the "defaultwa" abstract application provided in the default GAS configuration file.
<MAP Id="DUA_HTML5" Allowed="TRUE"> <PROXY>$(res.html5proxy.cmd)</PROXY> <PICTURE Using="cpn.gwc.html5.picture" /> <TIMEOUT Using="cpn.wa.timeout"/> <RENDERING Using="cpn.rendering.gwc2html5" /> <THEME Using="cpn.theme.html5.gwc" /> </MAP>
In this example, if the MAP selected is DUA_HTML5, then:
The rendering engine used will be the WEB_APPLICATION_RENDERING_COMPONENT with the Id="cpn.rendering.gwc2html5"
The theme used will be the WEB_APPLICATION_THEME_COMPONENT with the Id="cpn.theme.html5.gwc"