Package ca.uhn.fhir.okhttp.client
Class OkHttpRestfulRequest
java.lang.Object
ca.uhn.fhir.rest.client.api.BaseHttpRequest
ca.uhn.fhir.okhttp.client.OkHttpRestfulRequest
- All Implemented Interfaces:
ca.uhn.fhir.rest.client.api.IHttpRequest
public class OkHttpRestfulRequest
extends ca.uhn.fhir.rest.client.api.BaseHttpRequest
implements ca.uhn.fhir.rest.client.api.IHttpRequest
Adapter for building an OkHttp-specific request.
- Author:
- Matthew Clarke | matthew.clarke@orionhealth.com | Orion Health
-
Constructor Summary
ConstructorsConstructorDescriptionOkHttpRestfulRequest(okhttp3.Call.Factory theClient, String theUrl, ca.uhn.fhir.rest.api.RequestTypeEnum theRequestTypeEnum, okhttp3.RequestBody theRequestBody) -
Method Summary
Modifier and TypeMethodDescriptionvoidca.uhn.fhir.rest.client.api.IHttpResponseexecute()okhttp3.Request.BuildergetUri()voidremoveHeaders(String theHeaderName)voidMethods inherited from class ca.uhn.fhir.rest.client.api.BaseHttpRequest
getUrlSource, setUrlSourceMethods 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.IHttpRequest
getUrlSource, setUrlSource
-
Constructor Details
-
OkHttpRestfulRequest
public OkHttpRestfulRequest(okhttp3.Call.Factory theClient, String theUrl, ca.uhn.fhir.rest.api.RequestTypeEnum theRequestTypeEnum, okhttp3.RequestBody theRequestBody)
-
-
Method Details
-
getRequest
-
addHeader
- Specified by:
addHeaderin interfaceca.uhn.fhir.rest.client.api.IHttpRequest
-
execute
- Specified by:
executein interfaceca.uhn.fhir.rest.client.api.IHttpRequest- Throws:
IOException
-
getAllHeaders
- Specified by:
getAllHeadersin interfaceca.uhn.fhir.rest.client.api.IHttpRequest
-
getRequestBodyFromStream
- Specified by:
getRequestBodyFromStreamin interfaceca.uhn.fhir.rest.client.api.IHttpRequest
-
getUri
- Specified by:
getUriin interfaceca.uhn.fhir.rest.client.api.IHttpRequest
-
setUri
- Specified by:
setUriin interfaceca.uhn.fhir.rest.client.api.IHttpRequest
-
getHttpVerbName
- Specified by:
getHttpVerbNamein interfaceca.uhn.fhir.rest.client.api.IHttpRequest
-
removeHeaders
- Specified by:
removeHeadersin interfaceca.uhn.fhir.rest.client.api.IHttpRequest
-