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

      • ApacheHttpResponse

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

      • close

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

        public List<StringgetHeaders​(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

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