public class RequestVariableResolver
extends java.util.HashMap<java.lang.String,java.lang.Object>
RequestVariableResolver
is a HashMap
that
is used by the webconsole to process variables in the template.
The resolver is stored as a request attribute with the name
REQUEST_ATTRIBUTE
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY_APP_ROOT
The name of the key providing the absolute path of the Web Console root.
|
static java.lang.String |
KEY_PLUGIN_ROOT
The name of the key providing the absolute path of the current plugin.
|
static java.lang.String |
REQUEST_ATTRIBUTE
The name of the request attribute holding the
RequestVariableResolver
for the request (value is "felix.webconsole.variable.resolver"). |
Constructor and Description |
---|
RequestVariableResolver()
Creates a new variable resolver with default capacity.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
resolve(java.lang.String variable)
Returns the string representation of the value stored under the variable
name in this map.
|
public static final java.lang.String REQUEST_ATTRIBUTE
RequestVariableResolver
for the request (value is "felix.webconsole.variable.resolver").
This attribute is guaaranteed to be set for plugins.public static final java.lang.String KEY_APP_ROOT
public static final java.lang.String KEY_PLUGIN_ROOT
public RequestVariableResolver()
public java.lang.String resolve(java.lang.String variable)
null
is returned.variable
- The name of the variable whose value is to be returned.null
if there is no entry
with the given name in this map.Copyright © 2010 - 2023 Adobe. All Rights Reserved