Class ParameterMap

java.lang.Object
org.jvnet.hk2.component.MultiMap<String,String>
org.glassfish.api.admin.ParameterMap
All Implemented Interfaces:
Serializable, Cloneable

public class ParameterMap extends org.jvnet.hk2.component.MultiMap<String,String>
A map from parameter name to a list of parameter values. (Really just a more convenient name for MultiMap.)
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an empty ParameterMap.
    Copy constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    getMaskedMap(Set<String> secretParameters)
    Get a copy of this map with values of secret parameters changed into *******" to hide their values.
    Fluent API for adding parameters to the map.

    Methods inherited from class org.jvnet.hk2.component.MultiMap

    add, clone, contains, containsKey, entrySet, equals, get, getOne, hashCode, keySet, mergeAll, remove, remove, set, set, size, toCommaSeparatedString, toString

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ParameterMap

      public ParameterMap()
      Creates an empty ParameterMap.
    • ParameterMap

      public ParameterMap(ParameterMap base)
      Copy constructor.
  • Method Details

    • insert

      public ParameterMap insert(String k, String v)
      Fluent API for adding parameters to the map.
      Parameters:
      k -
      v -
      Returns:
      ParameterMap
    • getMaskedMap

      public ParameterMap getMaskedMap(Set<String> secretParameters)
      Get a copy of this map with values of secret parameters changed into *******" to hide their values. Parameters which are not secret, remain without any change.
      Parameters:
      secretParameters - A set of parameter names which are considered secret. Not null.
      Returns:
      A copy of this map with masked values