Package ca.uhn.fhir.okhttp.client
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 Summary
ConstructorsConstructorDescriptionOkHttpRestfulResponse(okhttp3.Response theResponse, ca.uhn.fhir.util.StopWatch theResponseStopWatch) -
Method Summary
Methods inherited from class ca.uhn.fhir.rest.client.impl.BaseHttpResponse
getRequestStopWatchMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.fhir.rest.client.api.IHttpResponse
getRequestStopWatch
-
Constructor Details
-
OkHttpRestfulResponse
public OkHttpRestfulResponse(okhttp3.Response theResponse, ca.uhn.fhir.util.StopWatch theResponseStopWatch)
-
-
Method Details
-
bufferEntity
- Specified by:
bufferEntityin interfaceca.uhn.fhir.rest.client.api.IHttpResponse- Throws:
IOException
-
close
- Specified by:
closein interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
createReader
- Specified by:
createReaderin interfaceca.uhn.fhir.rest.client.api.IHttpResponse- Throws:
IOException
-
getAllHeaders
- Specified by:
getAllHeadersin interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
getHeaders
- Specified by:
getHeadersin interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
getMimeType
- Specified by:
getMimeTypein interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
getResponse
- Specified by:
getResponsein interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
getStatus
- Specified by:
getStatusin interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
getStatusInfo
- Specified by:
getStatusInfoin interfaceca.uhn.fhir.rest.client.api.IHttpResponse
-
readEntity
- Specified by:
readEntityin interfaceca.uhn.fhir.rest.client.api.IHttpResponse- Throws:
IOException
-