Package ca.uhn.fhir.rest.client.impl
Class BaseHttpClientInvocation
java.lang.Object
ca.uhn.fhir.rest.client.impl.BaseHttpClientInvocation
- Direct Known Subclasses:
HttpDeleteClientInvocation
,HttpGetClientInvocation
,HttpPatchClientInvocation
,HttpPostClientInvocation
,HttpPutClientInvocation
,HttpSimpleClientInvocation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
static void
appendExtraParamsWithQuestionMark
(Map<String, List<String>> theExtraParams, StringBuilder theUrlBuilder, boolean theWithQuestionMark) abstract ca.uhn.fhir.rest.client.api.IHttpRequest
asHttpRequest
(String theUrlBase, Map<String, List<String>> theExtraParams, ca.uhn.fhir.rest.api.EncodingEnum theEncoding, Boolean thePrettyPrint) Create an HTTP request out of this client requestprotected ca.uhn.fhir.rest.client.api.IHttpRequest
createHttpRequest
(String theUrl, ca.uhn.fhir.rest.api.EncodingEnum theEncoding, ca.uhn.fhir.rest.api.RequestTypeEnum theRequestType) Create an HTTP request for the given url, encoding and request-typeca.uhn.fhir.context.FhirContext
Returns the FHIR context associated with this clientList
<ca.uhn.fhir.rest.client.api.Header> Returns the http headers to be sent with the requestca.uhn.fhir.rest.client.api.IRestfulClientFactory
Get the restfull client factory
-
Constructor Details
-
BaseHttpClientInvocation
-
-
Method Details
-
addHeader
-
asHttpRequest
public abstract ca.uhn.fhir.rest.client.api.IHttpRequest asHttpRequest(String theUrlBase, Map<String, List<String>> theExtraParams, ca.uhn.fhir.rest.api.EncodingEnum theEncoding, Boolean thePrettyPrint) Create an HTTP request out of this client request- Parameters:
theUrlBase
- The FHIR server base url (with a trailing "/")theExtraParams
- Any extra request parameters the server wishes to addtheEncoding
- The encoding to use for any serialized content sent to the server
-
createHttpRequest
protected ca.uhn.fhir.rest.client.api.IHttpRequest createHttpRequest(String theUrl, ca.uhn.fhir.rest.api.EncodingEnum theEncoding, ca.uhn.fhir.rest.api.RequestTypeEnum theRequestType) Create an HTTP request for the given url, encoding and request-type- Parameters:
theUrl
- The complete FHIR url to which the http request will be senttheEncoding
- The encoding to use for any serialized content sent to the servertheRequestType
- the type of HTTP request (GET, DELETE, ..)
-
getContext
Returns the FHIR context associated with this client- Returns:
- the myContext
-
getHeaders
Returns the http headers to be sent with the request -
getRestfulClientFactory
Get the restfull client factory -
appendExtraParamsWithQuestionMark
public static void appendExtraParamsWithQuestionMark(Map<String, List<String>> theExtraParams, StringBuilder theUrlBuilder, boolean theWithQuestionMark)
-