Package com.day.cq.wcm.api
Enum DebugFlag
- All Implemented Interfaces:
Serializable
,Comparable<DebugFlag>
,java.lang.constant.Constable
Enumeration of the various cq5 debug flags
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturns the debug mode for the current request, if set in the request attributesfromRequestParameter
(ServletRequest request, String parameterName) Return the current set of debug modes defined by supplied request parameter.static DebugFlag
Returns the enum constant of this type with the specified name.static DebugFlag[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
LAYOUT
displays layout information -
MDEV
display mobile device info as inline HTML -
MDEVC
display mobile device info as HTML comments
-
-
Field Details
-
REQUEST_ATTRIBUTE_NAME
name of the request attribute -
DEBUG_PARAM_NAME
Default parameter name of the debug request parameter- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
fromRequest
Returns the debug mode for the current request, if set in the request attributes- Parameters:
req
- request- Returns:
- debug mode, empty Set if not defined in request attributes
-
fromRequestParameter
Return the current set of debug modes defined by supplied request parameter. If the set was already stored in the request attributes, return that.- Parameters:
request
- the current requestparameterName
- the (multi-valued) request parameter that defines debug modes- Returns:
- the Set of DebugFlag, from request attributes if present, else computed, empty Set if no debug modes defined.
-