org.alembik.util
Enum TranscodingUtils.DetectionLevel

java.lang.Object
  extended by java.lang.Enum<TranscodingUtils.DetectionLevel>
      extended by org.alembik.util.TranscodingUtils.DetectionLevel
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TranscodingUtils.DetectionLevel>
Enclosing class:
TranscodingUtils

public static enum TranscodingUtils.DetectionLevel
extends java.lang.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.

See Also:
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

NONE

public static final TranscodingUtils.DetectionLevel NONE
No detection; any web page will be transcoded.


PASSIVE

public static final TranscodingUtils.DetectionLevel PASSIVE
Passive detection; the web page will be loaded using the default User-Agent (Mozilla browser) and then analyzed.


ACTIVE

public static final TranscodingUtils.DetectionLevel ACTIVE
Active detection; the web page will be loaded using the client's User-Agent and then analyzed.

Method Detail

values

public static final TranscodingUtils.DetectionLevel[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(TranscodingUtils.DetectionLevel c : TranscodingUtils.DetectionLevel.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static TranscodingUtils.DetectionLevel valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name

getNumber

public int getNumber()
Gets the identification number assigned to this detection level.

Returns:
the detection level value