Class JaxRsHttpResponse

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

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

    • JaxRsHttpResponse

      public JaxRsHttpResponse(javax.ws.rs.core.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()
      Specified by:
      createReader in interface ca.uhn.fhir.rest.client.api.IHttpResponse
    • getAllHeaders

      Specified by:
      getAllHeaders 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 javax.ws.rs.core.Response 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
    • getHeaders

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