Package ca.uhn.fhir.rest.client.api
Interface IHttpClient
-
public interface IHttpClient
A HTTP Client interface.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IHttpRequestcreateBinaryRequest(FhirContext theContext, IBaseBinary theBinary)Create a binary requestIHttpRequestcreateByteRequest(FhirContext theContext, String theContents, String theContentType, EncodingEnum theEncoding)Create a byte requestIHttpRequestcreateGetRequest(FhirContext theContext, EncodingEnum theEncoding)Create a normal http get requestIHttpRequestcreateParamRequest(FhirContext theContext, Map<String,List<String>> theParams, EncodingEnum theEncoding)Create a parameter request
-
-
-
Method Detail
-
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
IHttpRequest createBinaryRequest(FhirContext theContext, IBaseBinary theBinary)
Create a binary request- Parameters:
theContext- TODOtheBinary- the binary- Returns:
- the http request to be executed
-
createGetRequest
IHttpRequest createGetRequest(FhirContext theContext, EncodingEnum theEncoding)
Create a normal http get request- Parameters:
theContext- TODOtheEncoding- the request encoding- Returns:
- the http request to be executed
-
-