Package ca.uhn.fhir.rest.client.api
Interface IHttpClient
public interface IHttpClient
A HTTP Client interface.
-
Method Summary
Modifier and TypeMethodDescriptioncreateBinaryRequest
(FhirContext theContext, IBaseBinary theBinary) Create a binary requestcreateByteRequest
(FhirContext theContext, String theContents, String theContentType, EncodingEnum theEncoding) Create a byte requestcreateGetRequest
(FhirContext theContext, EncodingEnum theEncoding) Create a normal http get requestcreateParamRequest
(FhirContext theContext, Map<String, List<String>> theParams, EncodingEnum theEncoding) Create a parameter request
-
Method Details
-
createByteRequest
IHttpRequest createByteRequest(FhirContext theContext, String theContents, String theContentType, EncodingEnum theEncoding) Create a byte request- Parameters:
theContext
- TODOtheContents
- the contentstheContentType
- the contentTypetheEncoding
- the encoding- Returns:
- the http request to be executed
-
createParamRequest
IHttpRequest createParamRequest(FhirContext theContext, Map<String, List<String>> theParams, EncodingEnum theEncoding) Create a parameter request- Parameters:
theContext
- TODOtheParams
- the parameterstheEncoding
- the encoding- Returns:
- the http request to be executed
-
createBinaryRequest
Create a binary request- Parameters:
theContext
- TODOtheBinary
- the binary- Returns:
- the http request to be executed
-
createGetRequest
Create a normal http get request- Parameters:
theContext
- TODOtheEncoding
- the request encoding- Returns:
- the http request to be executed
-