public class ApacheHttpClient extends Object implements IHttpClient
HttpClient| Constructor and Description |
|---|
ApacheHttpClient(org.apache.http.client.HttpClient theClient,
StringBuilder theUrl,
Map<String,List<String>> theIfNoneExistParams,
String theIfNoneExistString,
RequestTypeEnum theRequestType,
List<Header> theHeaders) |
| Modifier and Type | Method and Description |
|---|---|
void |
addHeadersToRequest(ApacheHttpRequest theHttpRequest,
EncodingEnum theEncoding,
FhirContext theContext) |
IHttpRequest |
createBinaryRequest(FhirContext theContext,
IBaseBinary theBinary)
Create a binary request
|
IHttpRequest |
createByteRequest(FhirContext theContext,
String theContents,
String theContentType,
EncodingEnum theEncoding)
Create a byte request
|
IHttpRequest |
createGetRequest(FhirContext theContext,
EncodingEnum theEncoding)
Create a normal http get request
|
IHttpRequest |
createParamRequest(FhirContext theContext,
Map<String,List<String>> theParams,
EncodingEnum theEncoding)
Create a parameter request
|
public ApacheHttpClient(org.apache.http.client.HttpClient theClient,
StringBuilder theUrl,
Map<String,List<String>> theIfNoneExistParams,
String theIfNoneExistString,
RequestTypeEnum theRequestType,
List<Header> theHeaders)
public IHttpRequest createByteRequest(FhirContext theContext, String theContents, String theContentType, EncodingEnum theEncoding)
IHttpClientcreateByteRequest in interface IHttpClienttheContext - TODOtheContents - the contentstheContentType - the contentTypetheEncoding - the encodingpublic IHttpRequest createParamRequest(FhirContext theContext, Map<String,List<String>> theParams, EncodingEnum theEncoding)
IHttpClientcreateParamRequest in interface IHttpClienttheContext - TODOtheParams - the parameterstheEncoding - the encodingpublic IHttpRequest createBinaryRequest(FhirContext theContext, IBaseBinary theBinary)
IHttpClientcreateBinaryRequest in interface IHttpClienttheContext - TODOtheBinary - the binarypublic IHttpRequest createGetRequest(FhirContext theContext, EncodingEnum theEncoding)
IHttpClientcreateGetRequest in interface IHttpClienttheContext - TODOtheEncoding - the request encodingpublic void addHeadersToRequest(ApacheHttpRequest theHttpRequest, EncodingEnum theEncoding, FhirContext theContext)
Copyright © 2014–2017 University Health Network. All rights reserved.