Class RequestVariableResolver
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>
- Direct Known Subclasses:
DefaultVariableResolver
The
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.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe name of the key providing the absolute path of the Web Console root.static final StringThe name of the key providing the absolute path of the current plugin.static final StringThe name of the request attribute holding theRequestVariableResolverfor the request (value is "felix.webconsole.variable.resolver"). -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new variable resolver with default capacity. -
Method Summary
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesMethods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Field Details
-
REQUEST_ATTRIBUTE
The name of the request attribute holding theRequestVariableResolverfor the request (value is "felix.webconsole.variable.resolver"). This attribute is guaaranteed to be set for plugins.- See Also:
-
KEY_APP_ROOT
The name of the key providing the absolute path of the Web Console root. This key is guaaranteed to be set for plugins. -
KEY_PLUGIN_ROOT
The name of the key providing the absolute path of the current plugin. This key is guaaranteed to be set for plugins.
-
-
Constructor Details
-
RequestVariableResolver
public RequestVariableResolver()Creates a new variable resolver with default capacity.
-
-
Method Details
-
resolve
Returns the string representation of the value stored under the variable name in this map. If no value is stored under the variable name,nullis returned.- Parameters:
variable- The name of the variable whose value is to be returned.- Returns:
- The variable value or
nullif there is no entry with the given name in this map.
-