|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<TranscodingUtils.DetectionLevel> org.alembik.util.TranscodingUtils.DetectionLevel
public static enum TranscodingUtils.DetectionLevel
The possible levels of automatic detection of mobile-enabled sites. When a page is recognized as "mobilized", it will not be transcoded and its original location will be returned instead.
For more details on the detection algorithm, please refer to the rules for resposible reformatting.
TranscodingUtils.MOBILE_WEB_DETECTION
,
TranscodingUtils.setMobileWebDetectionLevel(TranscodingJob, org.alembik.util.TranscodingUtils.DetectionLevel)
,
TranscodingUtils.getMobileWebDetectionLevel(TranscodingJob)
Enum Constant Summary | |
---|---|
ACTIVE
Active detection; the web page will be loaded using the client's User-Agent and then analyzed. |
|
NONE
No detection; any web page will be transcoded. |
|
PASSIVE
Passive detection; the web page will be loaded using the default User-Agent (Mozilla browser) and then analyzed. |
Method Summary | |
---|---|
int |
getNumber()
Gets the identification number assigned to this detection level. |
static TranscodingUtils.DetectionLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static TranscodingUtils.DetectionLevel[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final TranscodingUtils.DetectionLevel NONE
public static final TranscodingUtils.DetectionLevel PASSIVE
public static final TranscodingUtils.DetectionLevel ACTIVE
Method Detail |
---|
public static final TranscodingUtils.DetectionLevel[] values()
for(TranscodingUtils.DetectionLevel c : TranscodingUtils.DetectionLevel.values()) System.out.println(c);
public static TranscodingUtils.DetectionLevel valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namepublic int getNumber()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |