com.ning.http.client.simple
Class HeaderMap

java.lang.Object
  extended by com.ning.http.client.simple.HeaderMap
All Implemented Interfaces:
Map<String,List<String>>

public class HeaderMap
extends Object
implements Map<String,List<String>>

A map containing headers with the sole purpose of being given to SimpleAHCTransferListener.onHeaders(String, HeaderMap).

Author:
Benjamin Hanzelmann

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
HeaderMap(FluentCaseInsensitiveStringsMap headers)
           
 
Method Summary
 void clear()
          Only read access is supported.
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set<Map.Entry<String,List<String>>> entrySet()
           
 List<String> get(Object key)
           
 String getFirstValue(String key)
           
 String getJoinedValue(String key, String delimiter)
           
 boolean isEmpty()
           
 Set<String> keySet()
           
 List<String> put(String key, List<String> value)
          Only read access is supported.
 void putAll(Map<? extends String,? extends List<String>> t)
          Only read access is supported.
 List<String> remove(Object key)
          Only read access is supported.
 int size()
           
 Collection<List<String>> values()
          Only read access is supported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

HeaderMap

public HeaderMap(FluentCaseInsensitiveStringsMap headers)
Method Detail

keySet

public Set<String> keySet()
Specified by:
keySet in interface Map<String,List<String>>

entrySet

public Set<Map.Entry<String,List<String>>> entrySet()
Specified by:
entrySet in interface Map<String,List<String>>

size

public int size()
Specified by:
size in interface Map<String,List<String>>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Map<String,List<String>>

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<String,List<String>>

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<String,List<String>>

getFirstValue

public String getFirstValue(String key)
See Also:
FluentCaseInsensitiveStringsMap.getFirstValue(String)

getJoinedValue

public String getJoinedValue(String key,
                             String delimiter)
See Also:
FluentCaseInsensitiveStringsMap.getJoinedValue(String, String)

get

public List<String> get(Object key)
Specified by:
get in interface Map<String,List<String>>

put

public List<String> put(String key,
                        List<String> value)
Only read access is supported.

Specified by:
put in interface Map<String,List<String>>

remove

public List<String> remove(Object key)
Only read access is supported.

Specified by:
remove in interface Map<String,List<String>>

putAll

public void putAll(Map<? extends String,? extends List<String>> t)
Only read access is supported.

Specified by:
putAll in interface Map<String,List<String>>

clear

public void clear()
Only read access is supported.

Specified by:
clear in interface Map<String,List<String>>

values

public Collection<List<String>> values()
Only read access is supported.

Specified by:
values in interface Map<String,List<String>>


Copyright © 2014. All Rights Reserved.