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

      • JaxRsHttpResponse

        public JaxRsHttpResponse​(javax.ws.rs.core.Response 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
      • createReader

        public Reader createReader()
        Specified by:
        createReader 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

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

        public InputStream readEntity()
        Specified by:
        readEntity 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