public class JaxRsRestfulClientFactory extends ca.uhn.fhir.rest.client.impl.RestfulClientFactory
| Constructor and Description |
|---|
JaxRsRestfulClientFactory()
Constructor.
|
JaxRsRestfulClientFactory(ca.uhn.fhir.context.FhirContext theFhirContext)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected JaxRsHttpClient |
getHttpClient(String theServerBase) |
ca.uhn.fhir.rest.client.api.IHttpClient |
getHttpClient(StringBuilder url,
Map<String,List<String>> theIfNoneExistParams,
String theIfNoneExistString,
ca.uhn.fhir.rest.api.RequestTypeEnum theRequestType,
List<ca.uhn.fhir.rest.client.api.Header> theHeaders) |
javax.ws.rs.client.Client |
getNativeClientClient() |
void |
register(List<Class<?>> components)
Register a list of Jax-Rs component (provider, filter...)
|
protected void |
resetHttpClient() |
void |
setHttpClient(Object theHttpClient)
Only accept clients of type javax.ws.rs.client.Client
Can be used to set a specific Client implementation
|
void |
setProxy(String theHost,
Integer thePort)
Not supported with default Jax-Rs client implementation
|
getConnectionRequestTimeout, getConnectTimeout, getFhirContext, getPoolMaxPerRoute, getPoolMaxTotal, getProxyPassword, getProxyUsername, getServerValidationMode, getServerValidationModeEnum, getSocketTimeout, newClient, newGenericClient, setConnectionRequestTimeout, setConnectTimeout, setFhirContext, setPoolMaxPerRoute, setPoolMaxTotal, setProxyCredentials, setServerValidationMode, setServerValidationModeEnum, setSocketTimeout, validateConfigured, validateServerBase, validateServerBaseIfConfiguredToDoSopublic JaxRsRestfulClientFactory()
FhirContext manually using RestfulClientFactory.setFhirContext(FhirContext) if this constructor is used!public JaxRsRestfulClientFactory(ca.uhn.fhir.context.FhirContext theFhirContext)
theFhirContext - The contextpublic javax.ws.rs.client.Client getNativeClientClient()
public ca.uhn.fhir.rest.client.api.IHttpClient getHttpClient(StringBuilder url, Map<String,List<String>> theIfNoneExistParams, String theIfNoneExistString, ca.uhn.fhir.rest.api.RequestTypeEnum theRequestType, List<ca.uhn.fhir.rest.client.api.Header> theHeaders)
public void setProxy(String theHost, Integer thePort)
theHost - The host (or null to disable proxying, as is the default)thePort - public void setHttpClient(Object theHttpClient)
theHttpClient - public void register(List<Class<?>> components)
components - list of Jax-Rs components to registerprotected JaxRsHttpClient getHttpClient(String theServerBase)
getHttpClient in class ca.uhn.fhir.rest.client.impl.RestfulClientFactoryprotected void resetHttpClient()
resetHttpClient in class ca.uhn.fhir.rest.client.impl.RestfulClientFactoryCopyright © 2014–2019 University Health Network. All rights reserved.