Package ca.uhn.fhir.rest.client.apache
Class BaseHttpClient
- java.lang.Object
-
- ca.uhn.fhir.rest.client.apache.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
-
-
Field Summary
Fields Modifier and Type Field Description protected ca.uhn.fhir.rest.api.RequestTypeEnummyRequestTypeprotected StringBuildermyUrl
-
Constructor Summary
Constructors Constructor Description BaseHttpClient(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)Constructor
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidaddHeadersToRequest(ca.uhn.fhir.rest.client.api.IHttpRequest theHttpRequest, ca.uhn.fhir.rest.api.EncodingEnum theEncoding, ca.uhn.fhir.context.FhirContext theContext)ca.uhn.fhir.rest.client.api.IHttpRequestcreateBinaryRequest(ca.uhn.fhir.context.FhirContext theContext, org.hl7.fhir.instance.model.api.IBaseBinary theBinary)ca.uhn.fhir.rest.client.api.IHttpRequestcreateByteRequest(ca.uhn.fhir.context.FhirContext theContext, String theContents, String theContentType, ca.uhn.fhir.rest.api.EncodingEnum theEncoding)ca.uhn.fhir.rest.client.api.IHttpRequestcreateGetRequest(ca.uhn.fhir.context.FhirContext theContext, ca.uhn.fhir.rest.api.EncodingEnum theEncoding)protected abstract ca.uhn.fhir.rest.client.api.IHttpRequestcreateHttpRequest()protected abstract ca.uhn.fhir.rest.client.api.IHttpRequestcreateHttpRequest(byte[] theContent)protected abstract ca.uhn.fhir.rest.client.api.IHttpRequestcreateHttpRequest(String theContents)protected abstract ca.uhn.fhir.rest.client.api.IHttpRequestcreateHttpRequest(Map<String,List<String>> theParams)ca.uhn.fhir.rest.client.api.IHttpRequestcreateParamRequest(ca.uhn.fhir.context.FhirContext theContext, Map<String,List<String>> theParams, ca.uhn.fhir.rest.api.EncodingEnum theEncoding)
-
-
-
Field Detail
-
myRequestType
protected final ca.uhn.fhir.rest.api.RequestTypeEnum myRequestType
-
myUrl
protected final StringBuilder myUrl
-
-
Constructor Detail
-
BaseHttpClient
public BaseHttpClient(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)
Constructor
-
-
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:
createBinaryRequestin interfaceca.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:
createByteRequestin 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:
createGetRequestin interfaceca.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(Map<String,List<String>> theParams)
-
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:
createParamRequestin interfaceca.uhn.fhir.rest.client.api.IHttpClient
-
-