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
  • Constructor Details

    • SslAwareAbstractRestfulClientFactory

      public SslAwareAbstractRestfulClientFactory(FhirContext theFhirContext)
    • SslAwareAbstractRestfulClientFactory

      public SslAwareAbstractRestfulClientFactory(FhirContext fhirContext, T httpClientBuilder)
  • Method Details

    • setSecurityInformation

      public void setSecurityInformation(FhirSecurityInformation<T> securityInformation)
    • customizeHttpClientBuilder

      protected T customizeHttpClientBuilder(T httpClientBuilder)
      Possibility to customize the httpClientBuilder. The default implementation of this method sets up the SSL config according to the securityInformation
      Parameters:
      httpClientBuilder - HttpClientBuilder
    • getSecurityInformation

      public FhirSecurityInformation<T> getSecurityInformation()
    • initializeSecurityInformation

      public abstract FhirSecurityInformation<T> initializeSecurityInformation(boolean enabled, SSLContext sslContext, HostnameVerifier hostnameVerifier, String userName, String password)
    • httpClientBuilder

      protected T 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 calls newHttpClientBuilder().
      Returns:
      HttpClientBuilder instance
    • newHttpClientBuilder

      protected abstract T newHttpClientBuilder()