Class ArrayHashMap

All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>

public class ArrayHashMap extends HashMap<String,Object>
Map for storing HTTP request parameters, for a string key may be presented multiple values. In the fact values are stored as String[], the second Object generic is used only to return String in the overwritten get(Object) method.
See Also:
  • Constructor Details

    • ArrayHashMap

      public ArrayHashMap()
  • Method Details

    • setLogTrackingId

      public void setLogTrackingId(String value)
      Sets log tracking ID identifier.
      Parameters:
      value -
    • put

      public Object put(String arg0, Object arg1)
      Specified by:
      put in interface Map<String,Object>
      Overrides:
      put in class HashMap<String,Object>
    • putAll

      public void putAll(Map<? extends String,?> arg0)
      Specified by:
      putAll in interface Map<String,Object>
      Overrides:
      putAll in class HashMap<String,Object>
    • get

      public Object get(Object key)
      Returns a single string value for a key
      Specified by:
      get in interface Map<String,Object>
      Overrides:
      get in class HashMap<String,Object>
      Parameters:
      key - the key
      Returns:
      the value or null
    • get

      public String get(String key)
      Returns a single value for a key
      Parameters:
      key - the key
      Returns:
      the value or null
    • getArray

      public String[] getArray(String key)
      Returns a raw string array value for a key
      Parameters:
      key - the key
      Returns:
      the values array or null
    • putArray

      public void putArray(String name, String[] value)
      Stores a raw string array value for a key
      Parameters:
      name - the key
      value - the value
    • putArrays

      public void putArrays(Map<String,String[]> values)
      Stores multiple values for multiple keys
      Parameters:
      values - the key-value map