public abstract class BaseHttpClient extends Object implements IHttpClient
| Modifier and Type | Field and Description |
|---|---|
protected RequestTypeEnum |
myRequestType |
protected StringBuilder |
myUrl |
| Constructor and Description |
|---|
BaseHttpClient(StringBuilder theUrl,
Map<String,List<String>> theIfNoneExistParams,
String theIfNoneExistString,
RequestTypeEnum theRequestType,
List<Header> theHeaders)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addHeadersToRequest(IHttpRequest theHttpRequest,
EncodingEnum theEncoding,
FhirContext theContext) |
IHttpRequest |
createBinaryRequest(FhirContext theContext,
IBaseBinary theBinary) |
IHttpRequest |
createByteRequest(FhirContext theContext,
String theContents,
String theContentType,
EncodingEnum theEncoding) |
IHttpRequest |
createGetRequest(FhirContext theContext,
EncodingEnum theEncoding) |
protected abstract IHttpRequest |
createHttpRequest() |
protected abstract IHttpRequest |
createHttpRequest(byte[] theContent) |
protected abstract IHttpRequest |
createHttpRequest(Map<String,List<String>> theParams) |
protected abstract IHttpRequest |
createHttpRequest(String theContents) |
IHttpRequest |
createParamRequest(FhirContext theContext,
Map<String,List<String>> theParams,
EncodingEnum theEncoding) |
protected final RequestTypeEnum myRequestType
protected final StringBuilder myUrl
public BaseHttpClient(StringBuilder theUrl, Map<String,List<String>> theIfNoneExistParams, String theIfNoneExistString, RequestTypeEnum theRequestType, List<Header> theHeaders)
public void addHeadersToRequest(IHttpRequest theHttpRequest, EncodingEnum theEncoding, FhirContext theContext)
public IHttpRequest createBinaryRequest(FhirContext theContext, IBaseBinary theBinary)
createBinaryRequest in interface IHttpClientpublic IHttpRequest createByteRequest(FhirContext theContext, String theContents, String theContentType, EncodingEnum theEncoding)
createByteRequest in interface IHttpClientpublic IHttpRequest createGetRequest(FhirContext theContext, EncodingEnum theEncoding)
createGetRequest in interface IHttpClientprotected abstract IHttpRequest createHttpRequest()
protected abstract IHttpRequest createHttpRequest(byte[] theContent)
protected abstract IHttpRequest createHttpRequest(Map<String,List<String>> theParams)
protected abstract IHttpRequest createHttpRequest(String theContents)
public IHttpRequest createParamRequest(FhirContext theContext, Map<String,List<String>> theParams, EncodingEnum theEncoding)
createParamRequest in interface IHttpClientCopyright © 2014–2018 University Health Network. All rights reserved.