Class SslAwareAbstractRestfulClientFactory<T>
java.lang.Object
ca.uhn.fhir.rest.client.impl.RestfulClientFactory
org.openehealth.ipf.commons.ihe.fhir.SslAwareAbstractRestfulClientFactory<T>
- All Implemented Interfaces:
IRestfulClientFactory
- Direct Known Subclasses:
SslAwareApacheRestfulClientFactory
,SslAwareMethanolRestfulClientFactory
public abstract class SslAwareAbstractRestfulClientFactory<T>
extends ca.uhn.fhir.rest.client.impl.RestfulClientFactory
Apache HttpClient RestfulClientFactory that is aware of SSL context parameters.
- Author:
- Christian Ohr
-
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
ConstructorDescriptionSslAwareAbstractRestfulClientFactory
(FhirContext theFhirContext) SslAwareAbstractRestfulClientFactory
(FhirContext fhirContext, T httpClientBuilder) -
Method Summary
Modifier and TypeMethodDescriptionprotected T
customizeHttpClientBuilder
(T httpClientBuilder) Possibility to customize the httpClientBuilder.protected T
Possibility to instantiate a subclassed builder for building Http Clients.abstract FhirSecurityInformation<T>
initializeSecurityInformation
(boolean enabled, SSLContext sslContext, HostnameVerifier hostnameVerifier, String userName, String password) protected abstract T
void
setSecurityInformation
(FhirSecurityInformation<T> securityInformation) Methods inherited from class ca.uhn.fhir.rest.client.impl.RestfulClientFactory
getConnectionRequestTimeout, getConnectTimeout, getFhirContext, getHttpClient, getPoolMaxPerRoute, getPoolMaxTotal, getProxyPassword, getProxyUsername, getServerValidationMode, getServerValidationModeEnum, getSocketTimeout, newClient, newGenericClient, resetHttpClient, setConnectionRequestTimeout, setConnectTimeout, setFhirContext, setPoolMaxPerRoute, setPoolMaxTotal, setProxyCredentials, setServerValidationMode, setServerValidationModeEnum, setSocketTimeout, validateConfigured, validateServerBase, validateServerBaseIfConfiguredToDoSo
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ca.uhn.fhir.rest.client.api.IRestfulClientFactory
getHttpClient, setHttpClient, setProxy
-
Constructor Details
-
SslAwareAbstractRestfulClientFactory
-
SslAwareAbstractRestfulClientFactory
-
-
Method Details
-
setSecurityInformation
-
customizeHttpClientBuilder
Possibility to customize the httpClientBuilder. The default implementation of this method sets up the SSL config according to thesecurityInformation
- Parameters:
httpClientBuilder
- HttpClientBuilder
-
getSecurityInformation
-
initializeSecurityInformation
public abstract FhirSecurityInformation<T> initializeSecurityInformation(boolean enabled, SSLContext sslContext, HostnameVerifier hostnameVerifier, String userName, String password) -
httpClientBuilder
Possibility to instantiate a subclassed builder for building Http Clients. This can be useful if e.g. created Http Clients need to be instrumented or specially configured. The default implementation uses (if present)httpClientBuilder
or else callsnewHttpClientBuilder()
.- Returns:
- HttpClientBuilder instance
-
newHttpClientBuilder
-