I'm developing a Java Web Application that uses WURFL.
The WURFLHolder creation and initialization is done at startup (just one time).
When a client sends a request the following code is executed:
Code: Select all
WURFLHolder wurflHolder = //code to retrieve te WURFLHolder
WURFLManager wurflManager = wurflHolder.getWURFLManager();
Device device = wurflManager.getDeviceForRequest(request);
String screenHeight = device.getCapability("physical_screen_height");
Thank you