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 final Map | |
| private boolean | locked
The current lock state of this parameter map. |
| private static final long | |
| private static final StringManager | sm
The string manager for this package. |
| private final 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<K, V>
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 |
|---|---|
| private void | |
| public void | clear()
Implements java. Removes all of the mappings from this map (optional operation). |
| public boolean | containsKey(Object
key whose presence in this map is to be tested key)Implements java. Returns |
| public boolean | containsValue(Object
value whose presence in this map is to be tested value)Implements java. Returns |
| public Set | entrySet()
Implements java. Returns a |
| public V | get(Object
the key whose associated value is to be returned key)Implements java. Returns the value to which the specified key is mapped,
or |
| public boolean | |
| public boolean | |
| public Set | |
| public V | put(K
key with which the specified value is to be associated key, V value to be associated with the specified key value)Implements java. Associates the specified value with the specified key in this map (optional operation). |
| public void | putAll(Map<? extends K, ? extends V>
mappings to be stored in this map map)Implements java. Copies all of the mappings from the specified map to this map (optional operation). |
| public V | remove(Object
key whose mapping is to be removed from the map key)Implements java. Removes the mapping for a key from this map if it is present (optional operation). |
| public void | |
| public int | |
| public Collection | values()
Implements java. Returns a |
| delegatedMap | back to summary |
|---|---|
| private final Map<K, V> delegatedMap | |
| locked | back to summary |
|---|---|
| private boolean locked The current lock state of this parameter map. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| sm | back to summary |
|---|---|
| private static final StringManager sm The string manager for this package. | |
| unmodifiableDelegatedMap | back to summary |
|---|---|
| private final Map<K, V> unmodifiableDelegatedMap | |
| 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<K, V> map) Construct a new map with the same mappings as the given map.
| |
| checkLocked | back to summary |
|---|---|
| private void checkLocked() | |
| clear | back to summary |
|---|---|
| public void clear() Implements java. Doc from java. Removes all of the mappings from this map (optional operation). The map will be empty after this call returns.
| |
| containsKey | back to summary |
|---|---|
| public boolean containsKey(Object key) Implements java. Doc from java. Returns | |
| containsValue | back to summary |
|---|---|
| public boolean containsValue(Object value) Implements java. Doc from java. Returns | |
| entrySet | back to summary |
|---|---|
| public Set Implements java. Doc from java. Returns a
Returns an unmodifiable | |
| get | back to summary |
|---|---|
| public V get(Object key) Implements java. Doc from java. Returns the value to which the specified key is mapped,
or More formally, if this map contains a mapping from a key
If this map permits null values, then a return value of
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Implements java. Doc from java. Returns
| |
| isLocked | back to summary |
|---|---|
public boolean isLocked()
| |
| keySet | back to summary |
|---|---|
| public Set Implements java. Doc from java. Returns a
Returns an unmodifiable | |
| put | back to summary |
|---|---|
| public V put(K key, V value) Implements java. Doc from java. Associates the specified value with the specified key in this map
(optional operation). If the map previously contained a mapping for
the key, the old value is replaced by the specified value. (A map
| |
| putAll | back to summary |
|---|---|
| public void putAll(Map<? extends K, ? extends V> map) Implements java. Doc from java. Copies all of the mappings from the specified map to this map
(optional operation). The effect of this call is equivalent to that
of calling
| |
| remove | back to summary |
|---|---|
| public V remove(Object key) Implements java. Doc from java. Removes the mapping for a key from this map if it is present
(optional operation). More formally, if this map contains a mapping
from key Returns the value to which this map previously associated the key,
or If this map permits null values, then a return value of
The map will not contain a mapping for the specified key once the call returns.
| |
| setLocked | back to summary |
|---|---|
| public void setLocked(boolean locked) Set the locked state of this parameter map.
| |
| size | back to summary |
|---|---|
| public int size() Implements java. Doc from java. Returns the number of key-value mappings in this map. If the
map contains more than
| |
| values | back to summary |
|---|---|
| public Collection Implements java. Doc from java. Returns a
Returns an unmodifiable
| |