Package ca.uhn.fhir.okhttp.client
Class OkHttpRestfulClientFactory
java.lang.Object
ca.uhn.fhir.rest.client.impl.RestfulClientFactory
ca.uhn.fhir.okhttp.client.OkHttpRestfulClientFactory
- All Implemented Interfaces:
ca.uhn.fhir.rest.client.api.IRestfulClientFactory
A Restful client factory based on OkHttp.
- Author:
- Matthew Clarke | matthew.clarke@orionhealth.com | Orion Health
-
Field Summary
Fields inherited from interface ca.uhn.fhir.rest.client.api.IRestfulClientFactory
DEFAULT_CONNECT_TIMEOUT, DEFAULT_CONNECTION_REQUEST_TIMEOUT, DEFAULT_POOL_MAX, DEFAULT_POOL_MAX_PER_ROUTE, DEFAULT_SERVER_VALIDATION_MODE, DEFAULT_SOCKET_TIMEOUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ca.uhn.fhir.rest.client.api.IHttpClientgetHttpClient(String theServerBase)ca.uhn.fhir.rest.client.api.IHttpClientgetHttpClient(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)okhttp3.Call.Factoryprotected voidvoidsetHttpClient(Object okHttpClient)Only accepts clients of typeOkHttpClientvoidMethods inherited from class ca.uhn.fhir.rest.client.impl.RestfulClientFactory
getConnectionRequestTimeout, getConnectTimeout, getFhirContext, getPoolMaxPerRoute, getPoolMaxTotal, getProxyPassword, getProxyUsername, getServerValidationMode, getServerValidationModeEnum, getSocketTimeout, newClient, newGenericClient, setConnectionRequestTimeout, setConnectTimeout, setFhirContext, setPoolMaxPerRoute, setPoolMaxTotal, setProxyCredentials, setServerValidationMode, setServerValidationModeEnum, setSocketTimeout, validateConfigured, validateServerBase, validateServerBaseIfConfiguredToDoSo
-
Constructor Details
-
OkHttpRestfulClientFactory
public OkHttpRestfulClientFactory() -
OkHttpRestfulClientFactory
-
-
Method Details
-
getHttpClient
- Specified by:
getHttpClientin classca.uhn.fhir.rest.client.impl.RestfulClientFactory
-
resetHttpClient
- Specified by:
resetHttpClientin classca.uhn.fhir.rest.client.impl.RestfulClientFactory
-
getNativeClient
-
getHttpClient
public 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) -
setHttpClient
Only accepts clients of typeOkHttpClient- Parameters:
okHttpClient-
-
setProxy
-