Class 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
  • 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

      public ObjectSet<Object2ObjectMap.Entry<String,​String>> object2ObjectEntrySet()
    • get

      public String get​(Object key)
    • size

      public int size()