Package org.glassfish.api.admin
Class ParameterMap
- All Implemented Interfaces:
Serializable,Cloneable
A map from parameter name to a list of parameter values. (Really just a more convenient name for MultiMap.)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty ParameterMap.ParameterMap(ParameterMap base) Copy constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetMaskedMap(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
-
Constructor Details
-
ParameterMap
public ParameterMap()Creates an empty ParameterMap. -
ParameterMap
Copy constructor.
-
-
Method Details
-
insert
Fluent API for adding parameters to the map.- Parameters:
k-v-- Returns:
- ParameterMap
-
getMaskedMap
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
-