Package com.day.cq.wcm.mobile.api.device
Interface DeviceGroupFilter
-
public interface DeviceGroupFilterADeviceGroupFilterspecifies filtering of device groups against a user agent extracted from the request and a set of mobile device capabilities extracted from the WURFL database.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetDescription()Returns a human-readable description of what this device group filter does.java.lang.StringgetTitle()Returns a human-readable title for offering filter choices in the UI.booleanmatches(DeviceGroup group, java.lang.String userAgent, java.util.Map<java.lang.String,java.lang.String> capabilities)Indicates whether the given devicegroupmatches theuserAgentand mobilecapabilitiesextracted from the request and the WURFL database.
-
-
-
Method Detail
-
getDescription
java.lang.String getDescription()
Returns a human-readable description of what this device group filter does.- Returns:
- The description.
-
getTitle
java.lang.String getTitle()
Returns a human-readable title for offering filter choices in the UI.- Returns:
- The title.
-
matches
boolean matches(DeviceGroup group, java.lang.String userAgent, java.util.Map<java.lang.String,java.lang.String> capabilities)
Indicates whether the given devicegroupmatches theuserAgentand mobilecapabilitiesextracted from the request and the WURFL database.- Parameters:
group- TheDeviceGroupto be matched against user agent and capabilities.userAgent- The user agent string as extracted from the request.capabilities- The mobile device capabilities as extracted from the WURFL database.- Returns:
trueif the device group matches the user agent and capabilities.
-
-