public class DefaultVariableResolver extends HashMap implements VariableResolver
DefaultVariableResolver is a HashMap based
default implementation of the VariableResolver interface. It may
be used by plugins to implement the interface for the request and is also
used by the
WebConsoleUtil.getVariableResolver(javax.servlet.ServletRequest)
as the variable resolver if none has yet been assigned to the request.AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
DefaultVariableResolver()
Creates a new variable resolver with default capacity.
|
DefaultVariableResolver(int initialCapacity)
Creates a new variable resolver with specified initial capacity
|
DefaultVariableResolver(int initialCapacity,
float loadFactor)
Creates a new variable resolver and initializes both - capacity & load factor
|
DefaultVariableResolver(Map source)
Creates a new variable resolver copying the variables from the given map.
|
| Modifier and Type | Method and Description |
|---|---|
String |
resolve(String variable)
Returns the string representation of the value stored under the variable
name in this map.
|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, valuesequals, hashCode, toStringpublic DefaultVariableResolver()
public DefaultVariableResolver(int initialCapacity,
float loadFactor)
initialCapacity - the initial capacity of the variable containerloadFactor - the load factor of the variable containerHashMap.HashMap(int, float)public DefaultVariableResolver(int initialCapacity)
initialCapacity - the initial capacity of the variable containerHashMap.HashMap(int)public DefaultVariableResolver(Map source)
source - the map whose variables are to be placed in this resolver.HashMap.HashMap(Map)public String resolve(String variable)
null is returned.resolve in interface VariableResolvervariable - 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 © 2006–2013 The Apache Software Foundation. All rights reserved.