org.odata4j.producer.resources
Class HeaderMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<String,List<String>>
          extended by 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 Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
HeaderMap()
           
 
Method Summary
 void add(String key, String value)
           
 boolean containsKey(Object key)
           
 List<String> get(Object key)
           
 String getFirst(String key)
           
 List<String> put(String key, List<String> value)
           
 void putAll(Map<? extends String,? extends List<String>> map)
           
 void putSingle(String key, String value)
           
 List<String> remove(Object key)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsValue, entrySet, isEmpty, keySet, size, values
 
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
clear, containsValue, entrySet, equals, hashCode, isEmpty, keySet, size, values
 

Constructor Detail

HeaderMap

public HeaderMap()
Method Detail

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