locked property. This class
can be used to safely expose Catalina internal parameter map objects to user classes without having to clone them in
order to avoid modifications. When first created, a ParameterMap instance is not locked.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | locked
The current lock state of this parameter map. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ParameterMap(int
The initial capacity of this map initialCapacity)Construct a new, empty map with the specified initial capacity and default load factor. |
| public | ParameterMap(int
The initial capacity of this map initialCapacity, float The load factor of this map loadFactor)Construct a new, empty map with the specified initial capacity and load factor. |
| public | ParameterMap(Map<String, String[]>
Map whose contents are duplicated in the new map map)Construct a new map with the same mappings as the given map. |
| Modifier and Type | Method and Description |
|---|---|
| public void | clear()
Overrides java. Implements java. Remove all mappings from this map. |
| public boolean | |
| public String[] | Returns: The previous value associated with the specified key, ornull if there was no mapping for keyKey with which the specified value is to be associated key, String[] Value to be associated with the specified key value)Overrides java. Implements java. Associate the specified value with the specified key in this map. |
| public void | putAll(Map<K, V>
Mappings to be stored into this map map)Overrides java. Implements java. Copy all of the mappings from the specified map to this one. |
| public Object | |
| public void |
| locked | back to summary |
|---|---|
| private boolean locked The current lock state of this parameter map. | |
| ParameterMap | back to summary |
|---|---|
| public ParameterMap() Construct a new, empty map with the default initial capacity and load factor. | |
| ParameterMap | back to summary |
|---|---|
| public ParameterMap(int initialCapacity) Construct a new, empty map with the specified initial capacity and default load factor.
| |
| ParameterMap | back to summary |
|---|---|
| public ParameterMap(int initialCapacity, float loadFactor) Construct a new, empty map with the specified initial capacity and load factor.
| |
| ParameterMap | back to summary |
|---|---|
| public ParameterMap(Map<String, String[]> map) Construct a new map with the same mappings as the given map. | |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Remove all mappings from this map.
| |
| isLocked | back to summary |
|---|---|
| public boolean isLocked() Return the locked state of this parameter map. | |
| put | back to summary |
|---|---|
| public String[] put(String key, String[] value) Overrides java. Implements java. Associate the specified value with the specified key in this map. If the map previously contained a mapping for this key, the old value is replaced.
| |
| putAll | back to summary |
|---|---|
| public void putAll(Map<K, V> map) Overrides java. Implements java. Copy all of the mappings from the specified map to this one. These mappings replace any mappings that this map had for any of the keys currently in the specified Map.
| |
| remove | back to summary |
|---|---|
| public Object remove(String key) Remove the mapping for this key from the map if present.
| |
| setLocked | back to summary |
|---|---|
| public void setLocked(boolean locked) Set the locked state of this parameter map.
| |