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:
SslAwareApacheRestfulClient5Factory,SslAwareApacheRestfulClientFactory,SslAwareMethanolRestfulClientFactory
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_CONNECTION_TTL, DEFAULT_POOL_MAX, DEFAULT_POOL_MAX_PER_ROUTE, DEFAULT_SERVER_VALIDATION_MODE, DEFAULT_SOCKET_TIMEOUT -
Constructor Summary
ConstructorsConstructorDescriptionSslAwareAbstractRestfulClientFactory(FhirContext theFhirContext) SslAwareAbstractRestfulClientFactory(FhirContext fhirContext, T httpClientBuilder) -
Method Summary
Modifier and TypeMethodDescriptionprotected TcustomizeHttpClientBuilder(T httpClientBuilder) Possibility to customize the httpClientBuilder.protected TPossibility 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 TvoidsetSecurityInformation(FhirSecurityInformation<T> securityInformation) Methods inherited from class ca.uhn.fhir.rest.client.impl.RestfulClientFactory
getConnectionRequestTimeout, getConnectionTimeToLive, getConnectTimeout, getFhirContext, getHttpClient, getPoolMaxPerRoute, getPoolMaxTotal, getProxyPassword, getProxyUsername, getServerValidationMode, getServerValidationModeEnum, getSocketTimeout, newClient, newGenericClient, resetHttpClient, setConnectionRequestTimeout, setConnectionTimeToLive, setConnectTimeout, setFhirContext, setPoolMaxPerRoute, setPoolMaxTotal, setProxyCredentials, setServerValidationMode, setServerValidationModeEnum, setSocketTimeout, validateConfigured, validateServerBase, validateServerBaseIfConfiguredToDoSoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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)httpClientBuilderor else callsnewHttpClientBuilder().- Returns:
- HttpClientBuilder instance
-
newHttpClientBuilder
-