Package com.day.cq.wcm.mobile.api.device
Interface DeviceMapper
-
public interface DeviceMapper
Maps HTTP requests to Device instances- Since:
- CQ 5.4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,DeviceCapability>
getCapabilities()
Returns a map of allDeviceCapability
s available in the system.Device
getDeviceInstance(SlingHttpServletRequest request)
Creates a new Device instance for the supplied request.java.util.Map<java.lang.String,DeviceGroupFilter>
getFilters()
Returns a map of allDeviceGroupFilter
s available in the system.
-
-
-
Method Detail
-
getCapabilities
java.util.Map<java.lang.String,DeviceCapability> getCapabilities()
Returns a map of allDeviceCapability
s available in the system.- Returns:
- An unmodifiable map of capabilities.
-
getDeviceInstance
Device getDeviceInstance(SlingHttpServletRequest request)
Creates a new Device instance for the supplied request.- Parameters:
request
- The request to retrieve the device instance from.- Returns:
- null if no mapping found.
-
getFilters
java.util.Map<java.lang.String,DeviceGroupFilter> getFilters()
Returns a map of allDeviceGroupFilter
s available in the system.- Returns:
- An unmodifiable map of filters.
-
-