org.odata4j.producer.resources
Class HeaderMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,List<String>>
org.odata4j.producer.resources.HeaderMap
- All Implemented Interfaces:
- Serializable, Cloneable, Map<String,List<String>>, MultivaluedMap<String,String>
public class HeaderMap
- extends HashMap<String,List<String>>
- implements MultivaluedMap<String,String>
A MultivaluedMap
with String keys and values backed by a HashMap.
Although keys are stored case-sensitive, all (internal) comparisons are done case-insensitive.
I.e. get("key")
and get("KEY")
return the same values.
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
HeaderMap
public HeaderMap()
add
public void add(String key,
String value)
- Specified by:
add
in interface MultivaluedMap<String,String>
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interface Map<String,List<String>>
- Overrides:
containsKey
in class HashMap<String,List<String>>
get
public List<String> get(Object key)
- Specified by:
get
in interface Map<String,List<String>>
- Overrides:
get
in class HashMap<String,List<String>>
getFirst
public String getFirst(String key)
- Specified by:
getFirst
in interface MultivaluedMap<String,String>
put
public List<String> put(String key,
List<String> value)
- Specified by:
put
in interface Map<String,List<String>>
- Overrides:
put
in class HashMap<String,List<String>>
putAll
public void putAll(Map<? extends String,? extends List<String>> map)
- Specified by:
putAll
in interface Map<String,List<String>>
- Overrides:
putAll
in class HashMap<String,List<String>>
putSingle
public void putSingle(String key,
String value)
- Specified by:
putSingle
in interface MultivaluedMap<String,String>
remove
public List<String> remove(Object key)
- Specified by:
remove
in interface Map<String,List<String>>
- Overrides:
remove
in class HashMap<String,List<String>>
http://odata4j.org