Class ParameterMap

  • All Implemented Interfaces:
    java.util.Map<java.lang.String,​java.lang.String>

    public class ParameterMap
    extends StringKeysMap<java.lang.String>
    Represents a parameter map.
    Since:
    5.0.0
    Author:
    tomyeh
    • 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>
    • Constructor Summary

      Constructors 
      Constructor Description
      ParameterMap​(javax.servlet.ServletRequest request)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean containsKey​(java.lang.Object key)  
      java.util.Set<java.util.Map.Entry<java.lang.String,​java.lang.String>> entrySet()  
      protected java.util.Enumeration<java.lang.String> getKeys()
      Returns an enumeration of keys.
      protected java.lang.String getValue​(java.lang.String key)
      Returns the value associated with the specified key.
      protected void removeValue​(java.lang.String key)
      Removes the specified key.
      protected void setValue​(java.lang.String key, java.lang.String value)
      Sets the value associated with the specified key.
      int size()  
      • Methods inherited from class java.util.AbstractMap

        clear, clone, containsValue, equals, hashCode, isEmpty, keySet, put, putAll, remove, toString, values
      • Methods inherited from class java.lang.Object

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

        compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
    • Constructor Detail

      • ParameterMap

        public ParameterMap​(javax.servlet.ServletRequest request)
    • Method Detail

      • entrySet

        public java.util.Set<java.util.Map.Entry<java.lang.String,​java.lang.String>> entrySet()
        Specified by:
        entrySet in interface java.util.Map<java.lang.String,​java.lang.String>
        Specified by:
        entrySet in class java.util.AbstractMap<java.lang.String,​java.lang.String>
      • size

        public int size()
        Specified by:
        size in interface java.util.Map<java.lang.String,​java.lang.String>
        Overrides:
        size in class java.util.AbstractMap<java.lang.String,​java.lang.String>
      • containsKey

        public boolean containsKey​(java.lang.Object key)
        Specified by:
        containsKey in interface java.util.Map<java.lang.String,​java.lang.String>
        Overrides:
        containsKey in class StringKeysMap<java.lang.String>
      • getValue

        protected java.lang.String getValue​(java.lang.String key)
        Description copied from class: StringKeysMap
        Returns the value associated with the specified key.
        Specified by:
        getValue in class StringKeysMap<java.lang.String>
      • getKeys

        protected java.util.Enumeration<java.lang.String> getKeys()
        Description copied from class: StringKeysMap
        Returns an enumeration of keys.
        Specified by:
        getKeys in class StringKeysMap<java.lang.String>
      • setValue

        protected void setValue​(java.lang.String key,
                                java.lang.String value)
        Description copied from class: StringKeysMap
        Sets the value associated with the specified key.
        Specified by:
        setValue in class StringKeysMap<java.lang.String>
      • removeValue

        protected void removeValue​(java.lang.String key)
        Description copied from class: StringKeysMap
        Removes the specified key.
        Specified by:
        removeValue in class StringKeysMap<java.lang.String>