|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.jsp.util.CmsJspDeviceSelectorTablet
public class CmsJspDeviceSelectorTablet
Provides the detection for different devices, so that the
<cms:device type="...">-Tag can detect
which kind of device type sends the HTTP request.
This implementation detects smart phones and tablets as mobile devices.
CmsJspDeviceSelector detects only
smart phones as mobile devices| Field Summary | |
|---|---|
static java.lang.String |
C_DESKTOP
Constant for desktop detection. |
static java.lang.String |
C_MOBILE
Constant for mobile detection. |
static java.util.List<java.lang.String> |
TYPES
The list of types supported by this device selector implementation. |
| Fields inherited from interface org.opencms.jsp.util.I_CmsJspDeviceSelector |
|---|
REQUEST_ATTRIBUTE_DEVICE |
| Constructor Summary | |
|---|---|
CmsJspDeviceSelectorTablet()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String C_DESKTOP
public static final java.lang.String C_MOBILE
public static final java.util.List<java.lang.String> TYPES
| Constructor Detail |
|---|
public CmsJspDeviceSelectorTablet()
| Method Detail |
|---|
public java.lang.String getDeviceType(javax.servlet.http.HttpServletRequest req)
I_CmsJspDeviceSelector
This will be one option in I_CmsJspDeviceSelector.getDeviceTypes().
getDeviceType in interface I_CmsJspDeviceSelectorreq - the HTTP servlet request to process
I_CmsJspDeviceSelector.getDeviceType(javax.servlet.http.HttpServletRequest)public java.util.List<java.lang.String> getDeviceTypes()
I_CmsJspDeviceSelector
getDeviceTypes in interface I_CmsJspDeviceSelectorI_CmsJspDeviceSelector.getDeviceTypes()public UAgentInfo getUserAgentInfo()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||