public class Device extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT |
static String |
DEFAULT_DEVICE |
static String |
FORCE_DEVICE_PARAMETER_NAME |
static String |
SWITCH_DEFAULT_DEVICE_PARAM_NAME |
Modifier and Type | Method and Description |
---|---|
void |
correctWithTemplate(Template template) |
void |
forceDefault()
force device to be default device
|
String |
getCode() |
static Device |
getDevice(ContentContext ctx) |
static Device |
getFakeDevice(String userAgent) |
String |
getLabel() |
String |
getRealCode() |
String |
getUserAgent() |
boolean |
isDefault() |
boolean |
isForced() |
boolean |
isHuman() |
boolean |
isMobileDevice() |
boolean |
isPdf() |
boolean |
isPointerDevice() |
static void |
main(String[] args) |
void |
setForcedCode(String forcedCode) |
protected void |
setLabel(String label) |
protected void |
setUserAgent(String userAgent) |
String |
toString() |
void |
unforceDefault() |
public static final String FORCE_DEVICE_PARAMETER_NAME
public static final String DEFAULT
public static final String DEFAULT_DEVICE
public static final String SWITCH_DEFAULT_DEVICE_PARAM_NAME
public static final Device getDevice(ContentContext ctx)
public void correctWithTemplate(Template template)
public void forceDefault()
public void setForcedCode(String forcedCode)
public String getCode()
public String getLabel()
public String getRealCode()
public String getUserAgent()
public boolean isDefault()
public boolean isPdf()
public boolean isPointerDevice()
public boolean isMobileDevice()
protected void setLabel(String label)
protected void setUserAgent(String userAgent)
public boolean isHuman()
public boolean isForced()
public void unforceDefault()
public static void main(String[] args)
Copyright © 2012-2018. All Rights Reserved.