Class ParameterMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<String,RequestParameter[]>
org.apache.sling.engine.impl.parameters.ParameterMap
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
,RequestParameter[]> RequestParameterMap
public class ParameterMap
extends LinkedHashMap<String,RequestParameter[]>
implements RequestParameterMap
The
ParameterMap
TODO- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Collection<?>
getParts()
getStringValue
(String name) String[]
getStringValues
(String name) Returns the first value for the named parameter or null if noneReturns all values for the named parameter or null if noneput
(String key, RequestParameter[] value) void
putAll
(Map<? extends String, ? extends RequestParameter[]> t) Methods inherited from class java.util.LinkedHashMap
containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, putIfAbsent, remove, replace, replace, size
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, values
-
Constructor Details
-
ParameterMap
public ParameterMap()
-
-
Method Details
-
getValue
Description copied from interface:RequestParameterMap
Returns the first value for the named parameter or null if none- Specified by:
getValue
in interfaceRequestParameterMap
- Parameters:
name
- The parameter name- Returns:
- The request parameter or
null
.
-
getValues
Description copied from interface:RequestParameterMap
Returns all values for the named parameter or null if none- Specified by:
getValues
in interfaceRequestParameterMap
- Parameters:
name
- The parameter name- Returns:
- The request parameter array or
null
.
-
getStringValue
-
getStringValues
-
getStringParameterMap
-
getPart
-
getParts
-
getRequestParameterList
-
clear
public void clear()- Specified by:
clear
in interfaceMap<String,
RequestParameter[]> - Overrides:
clear
in classLinkedHashMap<String,
RequestParameter[]>
-
put
- Specified by:
put
in interfaceMap<String,
RequestParameter[]> - Overrides:
put
in classHashMap<String,
RequestParameter[]>
-
putAll
- Specified by:
putAll
in interfaceMap<String,
RequestParameter[]> - Overrides:
putAll
in classHashMap<String,
RequestParameter[]>
-
remove
- Specified by:
remove
in interfaceMap<String,
RequestParameter[]> - Overrides:
remove
in classHashMap<String,
RequestParameter[]>
-