Class OkHttpRestfulResponse

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

public class OkHttpRestfulResponse extends ca.uhn.fhir.rest.client.impl.BaseHttpResponse implements ca.uhn.fhir.rest.client.api.IHttpResponse
Wraps an OkHttp Response
Author:
Matthew Clarke | matthew.clarke@orionhealth.com | Orion Health
  • Constructor Details

    • OkHttpRestfulResponse

      public OkHttpRestfulResponse(okhttp3.Response 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 Object 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