public class OkHttpRestfulRequest extends Object implements ca.uhn.fhir.rest.client.api.IHttpRequest
| Constructor and Description |
|---|
OkHttpRestfulRequest(okhttp3.Call.Factory theClient,
String theUrl,
ca.uhn.fhir.rest.api.RequestTypeEnum theRequestTypeEnum,
okhttp3.RequestBody theRequestBody) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHeader(String theName,
String theValue) |
ca.uhn.fhir.rest.client.api.IHttpResponse |
execute() |
Map<String,List<String>> |
getAllHeaders() |
String |
getHttpVerbName() |
okhttp3.Request.Builder |
getRequest() |
String |
getRequestBodyFromStream() |
String |
getUri() |
public OkHttpRestfulRequest(okhttp3.Call.Factory theClient, String theUrl, ca.uhn.fhir.rest.api.RequestTypeEnum theRequestTypeEnum, okhttp3.RequestBody theRequestBody)
public okhttp3.Request.Builder getRequest()
public void addHeader(String theName, String theValue)
addHeader in interface ca.uhn.fhir.rest.client.api.IHttpRequestpublic ca.uhn.fhir.rest.client.api.IHttpResponse execute() throws IOException
execute in interface ca.uhn.fhir.rest.client.api.IHttpRequestIOExceptionpublic Map<String,List<String>> getAllHeaders()
getAllHeaders in interface ca.uhn.fhir.rest.client.api.IHttpRequestpublic String getRequestBodyFromStream()
getRequestBodyFromStream in interface ca.uhn.fhir.rest.client.api.IHttpRequestpublic String getUri()
getUri in interface ca.uhn.fhir.rest.client.api.IHttpRequestpublic String getHttpVerbName()
getHttpVerbName in interface ca.uhn.fhir.rest.client.api.IHttpRequestCopyright © 2014–2018 University Health Network. All rights reserved.