Class Response

    • Method Detail

      • getRequestLine

        public RequestLine getRequestLine()
        Returns the request line that generated this response
      • getHost

        public HttpHost getHost()
        Returns the node that returned this response
      • getStatusLine

        public StatusLine getStatusLine()
        Returns the status line of the current response
      • getHeaders

        public Header[] getHeaders()
        Returns all the response headers
      • getHeader

        public String getHeader​(String name)
        Returns the value of the first header with a specified name of this message. If there is more than one matching header in the message the first element is returned. If there is no matching header in the message null is returned.
      • getEntity

        public HttpEntity getEntity()
        Returns the response body available, null otherwise
        See Also:
        HttpEntity
      • getWarnings

        public List<String> getWarnings()
        Returns a list of all warning headers returned in the response.
      • hasWarnings

        public boolean hasWarnings()
        Returns true if there is at least one warning header returned in the response.