public class OkHttpRestfulResponse extends ca.uhn.fhir.rest.client.impl.BaseHttpResponse implements ca.uhn.fhir.rest.client.api.IHttpResponse
Response| Constructor and Description |
|---|
OkHttpRestfulResponse(okhttp3.Response theResponse,
ca.uhn.fhir.util.StopWatch theResponseStopWatch) |
| Modifier and Type | Method and Description |
|---|---|
void |
bufferEntitity() |
void |
bufferEntity() |
void |
close() |
Reader |
createReader() |
Map<String,List<String>> |
getAllHeaders() |
List<String> |
getHeaders(String theName) |
String |
getMimeType() |
Object |
getResponse() |
int |
getStatus() |
String |
getStatusInfo() |
InputStream |
readEntity() |
public OkHttpRestfulResponse(okhttp3.Response theResponse, ca.uhn.fhir.util.StopWatch theResponseStopWatch)
public void bufferEntitity() throws IOException
bufferEntitity in interface ca.uhn.fhir.rest.client.api.IHttpResponseIOExceptionpublic void bufferEntity() throws IOException
bufferEntity in interface ca.uhn.fhir.rest.client.api.IHttpResponseIOExceptionpublic void close()
close in interface ca.uhn.fhir.rest.client.api.IHttpResponsepublic Reader createReader() throws IOException
createReader in interface ca.uhn.fhir.rest.client.api.IHttpResponseIOExceptionpublic Map<String,List<String>> getAllHeaders()
getAllHeaders in interface ca.uhn.fhir.rest.client.api.IHttpResponsepublic List<String> getHeaders(String theName)
getHeaders in interface ca.uhn.fhir.rest.client.api.IHttpResponsepublic String getMimeType()
getMimeType in interface ca.uhn.fhir.rest.client.api.IHttpResponsepublic Object getResponse()
getResponse in interface ca.uhn.fhir.rest.client.api.IHttpResponsepublic int getStatus()
getStatus in interface ca.uhn.fhir.rest.client.api.IHttpResponsepublic String getStatusInfo()
getStatusInfo in interface ca.uhn.fhir.rest.client.api.IHttpResponsepublic InputStream readEntity() throws IOException
readEntity in interface ca.uhn.fhir.rest.client.api.IHttpResponseIOExceptionCopyright © 2014–2018 University Health Network. All rights reserved.