Enum Constant and Description |
---|
LAYOUT
displays layout information
|
MDEV
display mobile device info as inline HTML
|
MDEVC
display mobile device info as HTML comments
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEBUG_PARAM_NAME
Default parameter name of the debug request parameter
|
static java.lang.String |
REQUEST_ATTRIBUTE_NAME
name of the request attribute
|
Modifier and Type | Method and Description |
---|---|
static java.util.Set<DebugFlag> |
fromRequest(ServletRequest req)
Returns the debug mode for the current request, if set in the request attributes
|
static java.util.Set<DebugFlag> |
fromRequestParameter(ServletRequest request,
java.lang.String parameterName)
Return the current set of debug modes defined by supplied request parameter.
|
static DebugFlag |
valueOf(java.lang.String name)
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.
|
public static final DebugFlag LAYOUT
public static final DebugFlag MDEV
public static final DebugFlag MDEVC
public static final java.lang.String REQUEST_ATTRIBUTE_NAME
public static final java.lang.String DEBUG_PARAM_NAME
public static DebugFlag[] values()
for (DebugFlag c : DebugFlag.values()) System.out.println(c);
public static DebugFlag 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 namejava.lang.NullPointerException
- if the argument is nullpublic static java.util.Set<DebugFlag> fromRequest(ServletRequest req)
req
- requestpublic static java.util.Set<DebugFlag> fromRequestParameter(ServletRequest request, java.lang.String parameterName)
request
- the current requestparameterName
- the (multi-valued) request parameter that defines debug modes"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"