org.opencms.jsp.util
Interface I_CmsJspDeviceSelector

All Known Implementing Classes:
CmsJspDeviceSelector, CmsJspDeviceSelectorTablet

public interface I_CmsJspDeviceSelector

This interface supports the basic functionality for the device detection.

Since:
8.0.0

Field Summary
static java.lang.String REQUEST_ATTRIBUTE_DEVICE
          Request parameter to force device selection.
 
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.
 

Field Detail

REQUEST_ATTRIBUTE_DEVICE

static final java.lang.String REQUEST_ATTRIBUTE_DEVICE
Request parameter to force device selection.

See Also:
Constant Field Values
Method Detail

getDeviceType

java.lang.String getDeviceType(javax.servlet.http.HttpServletRequest req)
Returns the name of the device type.

This will be one option in getDeviceTypes().

Parameters:
req - the HTTP servlet request to process
Returns:
the name of the device type

getDeviceTypes

java.util.List<java.lang.String> getDeviceTypes()
Returns an array of device types that can be detected.

Returns:
an array of device types that can be detected