Class ResponseHeaders

java.lang.Object
io.constructor.client.models.ResponseHeaders
Direct Known Subclasses:
AutocompleteResponse, SearchResponse

public abstract class ResponseHeaders extends Object
Base class that provides access to HTTP response headers. Abstract rather than an interface because Java 7 does not support default methods, and we want to avoid duplicating the field and method bodies in every response class.
  • Constructor Details

    • ResponseHeaders

      public ResponseHeaders()
  • Method Details

    • getHeaders

      public Map<String,List<String>> getHeaders()
      Returns:
      the HTTP response headers
    • setHeaders

      public void setHeaders(Map<String,List<String>> headers)
      Parameters:
      headers - the HTTP response headers to set. If null, defaults to an empty map.