51Degrees Device Detection Java  4.2

Device detection services for 51Degrees Pipeline

fiftyone.pipeline.web.examples.servlet.ExampleHelper Class Reference

Classes

interface  PropertyGetter

Static Public Member Functions

static AspectPropertyValue  tryGet (HttpServlet servlet, PropertyGetter getter)
Try to carry out a 'get' on a property getter, and catch a PropertyMissingException to avoid the example breaking if the resource key, or data file are not configured correctly by the user. More...

Member Function Documentation

◆ tryGet()

static AspectPropertyValue fiftyone.pipeline.web.examples.servlet.ExampleHelper.tryGet ( HttpServlet   servlet,
PropertyGetter   getter  
)
static

Try to carry out a 'get' on a property getter, and catch a PropertyMissingException to avoid the example breaking if the resource key, or data file are not configured correctly by the user.

Parameters
getter - to use e.g. DeviceData.getIsMobile()
Returns
value