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
-
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 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IRestfulClientFactory
getHttpClient, setHttpClient, setProxy
-
Constructor Details
-
SslAwareAbstractRestfulClientFactory
-
SslAwareAbstractRestfulClientFactory
-
-
Method Details
-
setSecurityInformation
-
customizeHttpClientBuilder
-
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
-