Package it.unimi.dsi.law.warc.util
Class HttpComponentsHttpResponse.HttpResponseHeaderMap
java.lang.Object
it.unimi.dsi.fastutil.objects.AbstractObject2ObjectFunction<K,V>
it.unimi.dsi.fastutil.objects.AbstractObject2ObjectMap<String,String>
it.unimi.dsi.law.warc.util.HttpComponentsHttpResponse.HttpResponseHeaderMap
- All Implemented Interfaces:
Function<String,String>
,Object2ObjectFunction<String,String>
,Object2ObjectMap<String,String>
,Serializable
,Function<String,String>
,Map<String,String>
- Enclosing class:
- HttpComponentsHttpResponse
public static final class HttpComponentsHttpResponse.HttpResponseHeaderMap extends AbstractObject2ObjectMap<String,String>
A wrapper class exposing headers in
HttpResponse.headers()
format by delegating to an HttpResponse
.- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2ObjectMap
AbstractObject2ObjectMap.BasicEntry<K extends Object,V extends Object>, AbstractObject2ObjectMap.BasicEntrySet<K extends Object,V extends Object>
Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.objects.Object2ObjectMap
Object2ObjectMap.Entry<K extends Object,V extends Object>, Object2ObjectMap.FastEntrySet<K extends Object,V extends Object>
-
Field Summary
Fields inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2ObjectFunction
defRetValue
-
Constructor Summary
Constructors Constructor Description HttpResponseHeaderMap()
-
Method Summary
Modifier and Type Method Description String
get(Object key)
ObjectSet<Object2ObjectMap.Entry<String,String>>
object2ObjectEntrySet()
void
response(org.apache.http.HttpResponse httpResponse)
Sets the response whose headers will be wrapped by this map.int
size()
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2ObjectMap
containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, toString, values
Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2ObjectFunction
defaultReturnValue, defaultReturnValue
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
Methods inherited from interface it.unimi.dsi.fastutil.objects.Object2ObjectFunction
andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort
Methods inherited from interface it.unimi.dsi.fastutil.objects.Object2ObjectMap
clear, defaultReturnValue, defaultReturnValue, entrySet, put, remove
-
Constructor Details
-
HttpResponseHeaderMap
public HttpResponseHeaderMap()
-
-
Method Details
-
response
public void response(org.apache.http.HttpResponse httpResponse)Sets the response whose headers will be wrapped by this map.- Parameters:
httpResponse
- a response whose headers will be exposed by this map.
-
object2ObjectEntrySet
-
get
-
size
public int size()
-