Class DefaultVariableResolver

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map, VariableResolver

    @Deprecated(since="2021-04-30")
    public class DefaultVariableResolver
    extends java.util.HashMap
    implements VariableResolver
    Deprecated.
    The Apache Felix Webconsole is not supported in Cloud environments.
    The 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.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultVariableResolver()
      Deprecated.
      Creates a new variable resolver with default capacity.
      DefaultVariableResolver​(int initialCapacity)
      Deprecated.
      Creates a new variable resolver with specified initial capacity
      DefaultVariableResolver​(int initialCapacity, float loadFactor)
      Deprecated.
      Creates a new variable resolver and initializes both - capacity & load factor
      DefaultVariableResolver​(java.util.Map source)
      Deprecated.
      Creates a new variable resolver copying the variables from the given map.
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      java.lang.String resolve​(java.lang.String variable)
      Deprecated.
      Returns the string representation of the value stored under the variable name in this map.
      • 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, values
      • Methods inherited from class java.util.AbstractMap

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        equals, hashCode
    • Constructor Detail

      • DefaultVariableResolver

        public DefaultVariableResolver()
        Deprecated.
        Creates a new variable resolver with default capacity.
      • DefaultVariableResolver

        public DefaultVariableResolver​(int initialCapacity,
                                       float loadFactor)
        Deprecated.
        Creates a new variable resolver and initializes both - capacity & load factor
        Parameters:
        initialCapacity - the initial capacity of the variable container
        loadFactor - the load factor of the variable container
        See Also:
        HashMap(int, float)
      • DefaultVariableResolver

        public DefaultVariableResolver​(int initialCapacity)
        Deprecated.
        Creates a new variable resolver with specified initial capacity
        Parameters:
        initialCapacity - the initial capacity of the variable container
        See Also:
        HashMap(int)
      • DefaultVariableResolver

        public DefaultVariableResolver​(java.util.Map source)
        Deprecated.
        Creates a new variable resolver copying the variables from the given map.
        Parameters:
        source - the map whose variables are to be placed in this resolver.
        See Also:
        HashMap(Map)
    • Method Detail

      • resolve

        public java.lang.String resolve​(java.lang.String variable)
        Deprecated.
        Returns the string representation of the value stored under the variable name in this map. If no value is stored under the variable name, null is returned.
        Specified by:
        resolve in interface VariableResolver
        Parameters:
        variable - The name of the variable whose value is to be returned.
        Returns:
        The variable value or null if there is no entry with the given name in this map.