Class ApacheHttpResponse

java.lang.Object
ca.uhn.fhir.rest.client.impl.BaseHttpResponse
ca.uhn.fhir.rest.client.apache.ApacheHttpResponse
All Implemented Interfaces:
ca.uhn.fhir.rest.client.api.IHttpResponse

public class ApacheHttpResponse extends BaseHttpResponse implements ca.uhn.fhir.rest.client.api.IHttpResponse
A Http Response based on Apache. This is an adapter around the class HttpResponse
Author:
Peter Van Houte | peter.vanhoute@agfa.com | Agfa Healthcare
  • Constructor Details

    • ApacheHttpResponse

      public ApacheHttpResponse(org.apache.http.HttpResponse theResponse, ca.uhn.fhir.util.StopWatch theResponseStopWatch)
  • Method Details

    • bufferEntity

      public void bufferEntity() throws IOException
      Specified by:
      bufferEntity in interface ca.uhn.fhir.rest.client.api.IHttpResponse
      Throws:
      IOException
    • close

      public void close()
      Specified by:
      close in interface ca.uhn.fhir.rest.client.api.IHttpResponse
    • createReader

      public Reader createReader() throws IOException
      Specified by:
      createReader in interface ca.uhn.fhir.rest.client.api.IHttpResponse
      Throws:
      IOException
    • getAllHeaders

      Specified by:
      getAllHeaders in interface ca.uhn.fhir.rest.client.api.IHttpResponse
    • getHeaders

      public List<String> getHeaders(String theName)
      Specified by:
      getHeaders in interface ca.uhn.fhir.rest.client.api.IHttpResponse
    • getMimeType

      public String getMimeType()
      Specified by:
      getMimeType in interface ca.uhn.fhir.rest.client.api.IHttpResponse
    • getResponse

      public org.apache.http.HttpResponse getResponse()
      Specified by:
      getResponse in interface ca.uhn.fhir.rest.client.api.IHttpResponse
    • getStatus

      public int getStatus()
      Specified by:
      getStatus in interface ca.uhn.fhir.rest.client.api.IHttpResponse
    • getStatusInfo

      Specified by:
      getStatusInfo in interface ca.uhn.fhir.rest.client.api.IHttpResponse
    • readEntity

      Specified by:
      readEntity in interface ca.uhn.fhir.rest.client.api.IHttpResponse
      Throws:
      IOException