public class ApacheRestfulClientFactory extends RestfulClientFactory
| Constructor and Description |
|---|
ApacheRestfulClientFactory()
Constructor
|
ApacheRestfulClientFactory(ca.uhn.fhir.context.FhirContext theContext)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected ApacheHttpClient |
getHttpClient(String theServerBase)
Get the http client for the given server base
|
ca.uhn.fhir.rest.client.api.IHttpClient |
getHttpClient(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) |
org.apache.http.client.HttpClient |
getNativeHttpClient() |
protected void |
resetHttpClient()
Reset the http client.
|
void |
setHttpClient(Object theHttpClient)
Only allows to set an instance of type org.apache.http.client.HttpClient
|
void |
setProxy(String theHost,
Integer thePort) |
getConnectionRequestTimeout, getConnectTimeout, getFhirContext, getPoolMaxPerRoute, getPoolMaxTotal, getProxyPassword, getProxyUsername, getServerValidationMode, getServerValidationModeEnum, getSocketTimeout, newClient, newGenericClient, setConnectionRequestTimeout, setConnectTimeout, setFhirContext, setPoolMaxPerRoute, setPoolMaxTotal, setProxyCredentials, setServerValidationMode, setServerValidationModeEnum, setSocketTimeout, validateConfigured, validateServerBase, validateServerBaseIfConfiguredToDoSopublic ApacheRestfulClientFactory()
public ApacheRestfulClientFactory(ca.uhn.fhir.context.FhirContext theContext)
theContext - The contextprotected ApacheHttpClient getHttpClient(String theServerBase)
RestfulClientFactorygetHttpClient in class RestfulClientFactorytheServerBase - the server basepublic ca.uhn.fhir.rest.client.api.IHttpClient getHttpClient(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)
public org.apache.http.client.HttpClient getNativeHttpClient()
protected void resetHttpClient()
RestfulClientFactoryresetHttpClient in class RestfulClientFactorypublic void setHttpClient(Object theHttpClient)
ca.uhn.fhir.rest.client.api.IRestfulClientFactory#setHttpClient(ca.uhn.fhir.rest.client.api.IHttpClient)Copyright © 2014–2019 University Health Network. All rights reserved.