Class BaseHttpClient

  • All Implemented Interfaces:
    ca.uhn.fhir.rest.client.api.IHttpClient
    Direct Known Subclasses:
    ApacheHttpClient

    public abstract class BaseHttpClient
    extends Object
    implements ca.uhn.fhir.rest.client.api.IHttpClient
    • Method Detail

      • addHeadersToRequest

        public void addHeadersToRequest​(ca.uhn.fhir.rest.client.api.IHttpRequest theHttpRequest,
                                        ca.uhn.fhir.rest.api.EncodingEnum theEncoding,
                                        ca.uhn.fhir.context.FhirContext theContext)
      • 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 interface ca.uhn.fhir.rest.client.api.IHttpClient
      • 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 interface ca.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 interface ca.uhn.fhir.rest.client.api.IHttpClient
      • createHttpRequest

        protected abstract ca.uhn.fhir.rest.client.api.IHttpRequest createHttpRequest()
      • createHttpRequest

        protected abstract ca.uhn.fhir.rest.client.api.IHttpRequest createHttpRequest​(byte[] theContent)
      • createHttpRequest

        protected abstract ca.uhn.fhir.rest.client.api.IHttpRequest createHttpRequest​(String theContents)
      • 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 interface ca.uhn.fhir.rest.client.api.IHttpClient