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 Stringget(Object key)ObjectSet<Object2ObjectMap.Entry<String,String>>object2ObjectEntrySet()voidresponse(org.apache.http.HttpResponse httpResponse)Sets the response whose headers will be wrapped by this map.intsize()Methods inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2ObjectMap
containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, toString, valuesMethods inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2ObjectFunction
defaultReturnValue, defaultReturnValueMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllMethods 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, composeShortMethods 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()
-