Class ParameterMap

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<String,String[]>
com.aspectran.core.activity.request.ParameterMap
All Implemented Interfaces:
Serializable, Cloneable, Map<String,String[]>

public class ParameterMap extends LinkedHashMap<String,String[]>
The Class ParameterMap.

Created: 2008. 06. 11 PM 8:55:13

See Also:
  • Constructor Details

    • ParameterMap

      public ParameterMap()
      Instantiates a new ParameterMap.
    • ParameterMap

      public ParameterMap(int initialCapacity)
      Instantiates a new ParameterMap.
      Parameters:
      initialCapacity - the initial capacity
    • ParameterMap

      public ParameterMap(Map<String,String[]> params)
      Instantiates a new ParameterMap.
      Parameters:
      params - the other parameter map
  • Method Details

    • getParameter

      public String getParameter(String name)
      Returns the string value to which the specified name is mapped, or null if this map contains no mapping for the name.
      Parameters:
      name - the parameter name
      Returns:
      a String representing the single value of the parameter
    • getParameterValues

      public String[] getParameterValues(String name)
      Returns the string values to which the specified name is mapped, or null if this map contains no mapping for the name.
      Parameters:
      name - the parameter name
      Returns:
      an array of String objects containing the parameter's values
    • setParameter

      public void setParameter(String name, String value)
      Sets the value to the parameter with the given name.
      Parameters:
      name - a String specifying the name of the parameter
      value - a String representing the single value of the parameter
      See Also:
    • setParameterValues

      public void setParameterValues(String name, String[] values)
      Sets the values to the parameter with the given name.
      Parameters:
      name - a String specifying the name of the parameter
      values - an array of String objects containing the parameter's values
      See Also:
    • getParameterNames

      public Set<String> getParameterNames()
      Returns a Collection of String objects containing the names of the parameters. If no parameters, the method returns an empty Collection.
      Returns:
      a Collection of String objects, each String containing the name of a parameter; or an empty Collection if no parameters
    • setAll

      public void setAll(Map<String,String> params)
      Set the given parameters under.
      Parameters:
      params - the other parameter map
    • extractAsMap

      public Map<String,Object> extractAsMap()
    • extractAsMap

      public Map<String,Object> extractAsMap(Map<String,Object> targetMap)