Class DefaultDeviceResolver

java.lang.Object
de.hybris.platform.acceleratorfacades.device.impl.DefaultDeviceResolver
All Implemented Interfaces:
DeviceResolver

public class DefaultDeviceResolver extends Object implements DeviceResolver
  • Constructor Details

    • DefaultDeviceResolver

      public DefaultDeviceResolver()
    • DefaultDeviceResolver

      public DefaultDeviceResolver(List<String> desktopUserAgentKeywords)
  • Method Details

    • resolveDevice

      public DeviceData resolveDevice(javax.servlet.http.HttpServletRequest request)
      Description copied from interface: DeviceResolver
      Detects whether the accessed device belongs to a mobile, tablet or desktop.
      Specified by:
      resolveDevice in interface DeviceResolver
      Parameters:
      request - the request
      Returns:
      the detected device data
    • getDeviceData

      protected DeviceData getDeviceData(String deviceType)
    • getMobileUserAgentPrefixes

      protected List<String> getMobileUserAgentPrefixes()
    • getMobileUserAgentKeywords

      protected List<String> getMobileUserAgentKeywords()
    • getTabletUserAgentKeywords

      protected List<String> getTabletUserAgentKeywords()
    • getDesktopUserAgentKeywords

      protected List<String> getDesktopUserAgentKeywords()
    • init

      protected final void init()