public class CmsJspDeviceSelectorDesktopMobileTablet extends java.lang.Object implements I_CmsJspDeviceSelector
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
C_DESKTOP
Constant for desktop detection.
|
static java.lang.String |
C_MOBILE
Constant for mobile detection.
|
static java.lang.String |
C_TABLET
Constant for tablet.
|
static java.util.List<java.lang.String> |
TYPES
The list of types supported by this device selector implementation.
|
REQUEST_ATTRIBUTE_DEVICE
构造器和说明 |
---|
CmsJspDeviceSelectorDesktopMobileTablet() |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getDeviceType(javax.servlet.http.HttpServletRequest req)
Returns the name of the device type.
|
java.util.List<java.lang.String> |
getDeviceTypes()
Returns an array of device types that can be detected.
|
UAgentInfo |
getUserAgentInfo()
Returns the User Agent info.
|
protected boolean |
isTemplateContextCompatible(CmsTemplateContext templateContext)
Checks if a template context is compatible with this device selector.
|
public static final java.lang.String C_DESKTOP
public static final java.lang.String C_MOBILE
public static final java.lang.String C_TABLET
public static final java.util.List<java.lang.String> TYPES
public java.lang.String getDeviceType(javax.servlet.http.HttpServletRequest req)
I_CmsJspDeviceSelector
This will be one option in I_CmsJspDeviceSelector.getDeviceTypes()
.
getDeviceType
在接口中 I_CmsJspDeviceSelector
req
- the HTTP servlet request to processI_CmsJspDeviceSelector.getDeviceType(javax.servlet.http.HttpServletRequest)
public java.util.List<java.lang.String> getDeviceTypes()
I_CmsJspDeviceSelector
getDeviceTypes
在接口中 I_CmsJspDeviceSelector
I_CmsJspDeviceSelector.getDeviceTypes()
public UAgentInfo getUserAgentInfo()
protected boolean isTemplateContextCompatible(CmsTemplateContext templateContext)
templateContext
- the template context to check