public class LiteDeviceResolver extends Object
org.springframework.mobile.device.LiteDeviceResolver| 构造器和说明 |
|---|
LiteDeviceResolver() |
LiteDeviceResolver(List<String> normalUserAgentKeywords) |
| 限定符和类型 | 方法和说明 |
|---|---|
LiteDevice |
resolveDevice(javax.servlet.http.HttpServletRequest request) |
protected LiteDevice |
resolveFallback(javax.servlet.http.HttpServletRequest request)
Fallback called if no mobile device is matched by this resolver.
|
protected LiteDevice |
resolveWithPlatform(DeviceType deviceType,
DevicePlatform devicePlatform)
Wrapper method for allow subclassing platform based resolution
|
public LiteDevice resolveDevice(javax.servlet.http.HttpServletRequest request)
protected LiteDevice resolveWithPlatform(DeviceType deviceType, DevicePlatform devicePlatform)
protected LiteDevice resolveFallback(javax.servlet.http.HttpServletRequest request)
Device that is neither
mobile or a tablet. Subclasses may override to try additional mobile or tablet
device matching before falling back to a "normal" device.Copyright © 2023. All rights reserved.