Type: New Feature
Affects Version/s: None
Fix Version/s: None
If a user wants to use spring mobile with a device repository (wurfl, deviceatlas etc), our interface 'Device' does not have a method which can be overridden by implementing class to get individual capabilities of device.
We need a method in interface Device with below signature -
- Given name of capability, returns its value for current device. For example, if current device is iPhone and capabilityName = Touch, method will return 'true'.
- This method should be used when using a device repository, e.g. WURFL, DeviceAtlas, DetectRight or a custom one. If the user-agent of current device is present in
- device repository being used, the method will simply return capability value as present in device repository. If no device repository is being used or device repository does not
- have user agent of current device, method will return null.
- @param capabilityName
String getCapability( String capabilityName );
The default implementation class LiteDevice will simply return null in this method -
public String getCapability(String capabilityName)
Without this method, users can not use spring-mobile with any server side device repository.