Class ApacheHttpResponse

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.apache.http.Header[] allHeaders  
      private org.apache.http.client.methods.HttpRequestBase request  
      private org.apache.http.HttpResponse response  
    • Constructor Summary

      Constructors 
      Constructor Description
      ApacheHttpResponse​(org.apache.http.client.methods.HttpRequestBase request, org.apache.http.HttpResponse response)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void disconnect()
      Aborts execution of the request.
      java.io.InputStream getContent()
      Returns the HTTP response content input stream or null for none.
      java.lang.String getContentEncoding()
      Returns the content encoding (for example "gzip") or null for none.
      long getContentLength()
      Returns the content length or 0 for none.
      java.lang.String getContentType()
      Returns the content type or null for none.
      int getHeaderCount()
      Returns the number of HTTP response headers.
      java.lang.String getHeaderName​(int index)
      Returns the HTTP response header name at the given zero-based index.
      java.lang.String getHeaderValue​(int index)
      Returns the HTTP response header value at the given zero-based index.
      java.lang.String getHeaderValue​(java.lang.String name)  
      java.lang.String getReasonPhrase()
      Returns the HTTP reason phrase or null for none.
      int getStatusCode()
      Returns the response status code or <=0 for none.
      java.lang.String getStatusLine()
      Returns the response status line or null for none.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • request

        private final org.apache.http.client.methods.HttpRequestBase request
      • response

        private final org.apache.http.HttpResponse response
      • allHeaders

        private final org.apache.http.Header[] allHeaders
    • Constructor Detail

      • ApacheHttpResponse

        ApacheHttpResponse​(org.apache.http.client.methods.HttpRequestBase request,
                           org.apache.http.HttpResponse response)