Package ca.uhn.fhir.jaxrs.client
Class JaxRsHttpClient
java.lang.Object
ca.uhn.fhir.jaxrs.client.JaxRsHttpClient
- All Implemented Interfaces:
ca.uhn.fhir.rest.client.api.IHttpClient
A Http Request based on JaxRs. This is an adapter around the class
Client
- Author:
- Peter Van Houte | peter.vanhoute@agfa.com | Agfa Healthcare
-
Constructor Summary
ConstructorDescriptionJaxRsHttpClient
(jakarta.ws.rs.client.Client theClient, StringBuilder theUrl, Map<String, List<String>> theIfNoneExistParams, String theIfNoneExistString, ca.uhn.fhir.rest.api.RequestTypeEnum theRequestType, List<ca.uhn.fhir.rest.client.api.Header> theHeaders) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addHeadersToRequest
(JaxRsHttpRequest theHttpRequest, ca.uhn.fhir.rest.api.EncodingEnum theEncoding, ca.uhn.fhir.context.FhirContext theContext) ca.uhn.fhir.rest.client.api.IHttpRequest
createBinaryRequest
(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IBaseBinary theBinary) ca.uhn.fhir.rest.client.api.IHttpRequest
createByteRequest
(ca.uhn.fhir.context.FhirContext theContext, String theContents, String theContentType, ca.uhn.fhir.rest.api.EncodingEnum theEncoding) ca.uhn.fhir.rest.client.api.IHttpRequest
createGetRequest
(ca.uhn.fhir.context.FhirContext theContext, ca.uhn.fhir.rest.api.EncodingEnum theEncoding) ca.uhn.fhir.rest.client.api.IHttpRequest
createParamRequest
(ca.uhn.fhir.context.FhirContext theContext, Map<String, List<String>> theParams, ca.uhn.fhir.rest.api.EncodingEnum theEncoding)
-
Constructor Details
-
JaxRsHttpClient
public JaxRsHttpClient(jakarta.ws.rs.client.Client theClient, StringBuilder theUrl, Map<String, List<String>> theIfNoneExistParams, String theIfNoneExistString, ca.uhn.fhir.rest.api.RequestTypeEnum theRequestType, List<ca.uhn.fhir.rest.client.api.Header> theHeaders)
-
-
Method Details
-
createByteRequest
public ca.uhn.fhir.rest.client.api.IHttpRequest createByteRequest(ca.uhn.fhir.context.FhirContext theContext, String theContents, String theContentType, ca.uhn.fhir.rest.api.EncodingEnum theEncoding) - Specified by:
createByteRequest
in interfaceca.uhn.fhir.rest.client.api.IHttpClient
-
createParamRequest
public ca.uhn.fhir.rest.client.api.IHttpRequest createParamRequest(ca.uhn.fhir.context.FhirContext theContext, Map<String, List<String>> theParams, ca.uhn.fhir.rest.api.EncodingEnum theEncoding) - Specified by:
createParamRequest
in interfaceca.uhn.fhir.rest.client.api.IHttpClient
-
createBinaryRequest
public ca.uhn.fhir.rest.client.api.IHttpRequest createBinaryRequest(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IBaseBinary theBinary) - Specified by:
createBinaryRequest
in interfaceca.uhn.fhir.rest.client.api.IHttpClient
-
createGetRequest
public ca.uhn.fhir.rest.client.api.IHttpRequest createGetRequest(ca.uhn.fhir.context.FhirContext theContext, ca.uhn.fhir.rest.api.EncodingEnum theEncoding) - Specified by:
createGetRequest
in interfaceca.uhn.fhir.rest.client.api.IHttpClient
-
addHeadersToRequest
public void addHeadersToRequest(JaxRsHttpRequest theHttpRequest, ca.uhn.fhir.rest.api.EncodingEnum theEncoding, ca.uhn.fhir.context.FhirContext theContext)
-